Mark-20170824-Ubuntu 14.04 apt-get 安装 Ansible 为非最新版本,
Mark-20170824-Ubuntu 14.04 apt-get 安装 Ansible 为非最新版本,
Problem
root@xxx:/opt/ansible# ansible-playbook -i inventory/ copyfile.yaml
ERROR: environment is not a legal parameter in an Ansible Playbook
root@cso-server03:/opt/ansible4ops# ansible --version
ansible 1.5.4
版本太旧,导致报错。
Fix
Ansible not allowing environment at playbook level
Solution
sudo apt-get install software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible
ubuntu14.04安装Ansible
评论暂时关闭