Skip to content

Instantly share code, notes, and snippets.

@Fizzadar
Last active October 3, 2017 17:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fizzadar/72337c3b548f7eef8d45 to your computer and use it in GitHub Desktop.
Save Fizzadar/72337c3b548f7eef8d45 to your computer and use it in GitHub Desktop.
Why Ansible is shit (1.8.2)
playbook -i inventories/development playbook.yml --extra-vars 'ansible_ssh_private_key=files/insecure_private_key' -vvv
PLAY [all] ********************************************************************
TASK: [Ensure /opt/bin directory] *********************************************
...
fatal: [192.168.255.12] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue
fatal: [192.168.255.10] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue
fatal: [192.168.255.11] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue
fatal: [192.168.255.13] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/Fizzadar/playbook.retry
192.168.255.10 : ok=0 changed=0 unreachable=1 failed=0
192.168.255.11 : ok=0 changed=0 unreachable=1 failed=0
192.168.255.12 : ok=0 changed=0 unreachable=1 failed=0
192.168.255.13 : ok=0 changed=0 unreachable=1 failed=0
playbook -i inventories/development playbook.yml --private-key files/insecure_private_key
PLAY [all] ********************************************************************
TASK: [Ensure /opt/bin directory] *********************************************
changed: [192.168.255.10]
changed: [192.168.255.12]
changed: [192.168.255.13]
changed: [192.168.255.11]
...
ERROR: Multiple variable files found. There should only be one. ['playbook/group_vars/all.yml', 'playbook/group_vars/all.yaml']
root@vagrant-ubuntu-trusty-64:/opt/# find playbook/group_vars/all.yml
find: `playbook/group_vars/all.yml': No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment