Ansible + 10.11.6
I'm having a weird issue with Ansible on a (very) clean install of 10.11.6. I've installed brew, zsh, oh-my-zsh, Lil' snitch and 1password (and literally nothing else). I installed
Solution 1:
This happens if there is no python installed on the remote hosts.
The ansible documentation suggests doing this for every host by hand: ansible myhost --sudo -m raw -a "yum install -y python2 python-simplejson"
However I think it's nicer to bootstrap all of your hosts with this snippet at the start of you playbook:
- name: Bootrstrap python
hosts: localhost
tasks:
raw: sudo apt-get update && sudo apt-get -y python-simplejson
delegate_to: '{{ item }}'
with_items: {{ groups["hosts"] }}
Solution 2:
I had a similar issue, but the "fix" was stranger yet: remove Python3 from the host, as Ansible currently supports up to Python 2.7.
Solution 3:
Python3 don't work with Ansible (....
apt-get install -y python2.7 python-simplejson
on remote server. Not necessary remove any other versions.- your permission to
id_rsa
must be only 'read' -chmod 400 ~/.ssh/id_rsa
- either you can get another error "UNPROTECTED PRIVATE KEY FILE!"
Post a Comment for "Ansible + 10.11.6"