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

Not Surprised

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章