# Pastebin q3Ht1Llw #### provision.yml --- # minimal play to run on provisioned hosts # should be extended to actually provision a host directly # and then run - hosts: all remote_user: root gather_facts: false roles: - bootstrap ### bootstrap.yml --- # bootstraps a remote node to respect ansible's authority - name: check for python raw: which python register: pypath ignore_errors: True - name: push the binary package raw: pkg install -y python when: pypath|failed $ clear; playbook provision.yml --limit freebsd -vvv PLAY [all] ******************************************************************** TASK: [bootstrap | setup ] **************************************************** ESTABLISH CONNECTION FOR USER: root REMOTE_MODULE setup EXEC ['ssh', '-tt', '-q', '-o', 'PubkeyAuthentication=yes', '-o', 'Port=2200', '-o', 'IdentityFile=/zfs/shared/sync/keys/ssh/jsonified_ansible_20130625', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=root', '-o', 'ConnectTimeout=10', 'wintermute.jsonified.com', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1389742357.21-214341203160380 && echo $HOME/.ansible/tmp/ansible-tmp-1389742357.21-214341203160380'"] PUT /var/folders/tj/175z0y850xv6hqmgzfwqjyx00000gp/T/tmpjqx_TC TO /root/.ansible/tmp/ansible-tmp-1389742357.21-214341203160380/setup EXEC ['ssh', '-tt', '-q', '-o', 'PubkeyAuthentication=yes', '-o', 'Port=2200', '-o', 'IdentityFile=/zfs/shared/sync/keys/ssh/jsonified_ansible_20130625', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=root', '-o', 'ConnectTimeout=10', 'wintermute.jsonified.com', "/bin/sh -c '/usr/local/bin/python /root/.ansible/tmp/ansible-tmp-1389742357.21-214341203160380/setup; rm -rf /root/.ansible/tmp/ansible-tmp-1389742357.21-214341203160380/ >/dev/null 2>&1'"] failed: [wintermute.jsonified.com] => {"failed": true, "item": "", "parsed": false} invalid output was: /usr/local/bin/python: not found ...ignoring TASK: [bootstrap | check for python] ****************************************** skipping: [wintermute.jsonified.com] TASK: [bootstrap | push the binary package] *********************************** skipping: [wintermute.jsonified.com] PLAY RECAP ******************************************************************** wintermute.jsonified.com : ok=1 changed=0 unreachable=0 failed=0