ansible@ip-172-31-18-96:/etc/playbook$ ansible-playbook -i inventory lamp.yml PLAY [web] *************************************************************************************************************************************************** TASK [fail for other platforms] ****************************************************************************************************************************** fatal: [172.31.17.222]: FAILED! => {"msg": "The conditional check 'ansible_facts['os_family'] == \"Redhat\"' failed. The error was: error while evaluating con ditional (ansible_facts['os_family'] == \"Redhat\"): 'dict object' has no attribute 'os_family'\n\nThe error appears to have been in '/etc/playbook/lamp.yml': line 6, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n tasks:\n - name: fail f or other platforms\n ^ here\n"} fatal: [localhost]: FAILED! => {"msg": "The conditional check 'ansible_facts['os_family'] == \"Redhat\"' failed. The error was: error while evaluating conditi onal (ansible_facts['os_family'] == \"Redhat\"): 'dict object' has no attribute 'os_family'\n\nThe error appears to have been in '/etc/playbook/lamp.yml': lin e 6, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n tasks:\n - name: fail for o ther platforms\n ^ here\n"} [WARNING]: Could not create retry file '/etc/playbook/lamp.retry'. [Errno 13] Permission denied: u'/etc/playbook/lamp.retry' PLAY RECAP *************************************************************************************************************************************************** 172.31.17.222 : ok=0 changed=0 unreachable=0 failed=1 localhost : ok=0 changed=0 unreachable=0 failed=1 |
|
Inventory file
[web] 172.31.17.222 localhost [dbserver] 172.31.17.101 [local] localhost |
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAFAnimCGYOYrV16RGTTfy9V-F%2B%3D4YfYZLPcxKYG9%2BOReuvNR9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Jonathan lozada de la matta
AUTOMATION PRACTICE
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BJBvqAxhVxe33QTDMrYX%2Bg6ueNstvLHWET9WY_9eYUp4w%40mail.gmail.com.
"ansible_os_family": "RedHat",
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAFAnimBoYV%3D7s6o9Kg3U0rZjDgvysr6-aKVQ3R85QsBtF10k%3DA%40mail.gmail.com.