Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ansible-playbook 2.7.5
- config file = /etc/ansible/ansible.cfg
- configured module search path = [u'/home/masteryoda/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
- ansible python module location = /usr/lib/python2.7/dist-packages/ansible
- executable location = /usr/bin/ansible-playbook
- python version = 2.7.15+ (default, Nov 28 2018, 16:27:22) [GCC 8.2.0]
- Using /etc/ansible/ansible.cfg as config file
- /etc/ansible/hosts did not meet host_list requirements, check plugin documentation if this is unexpected
- /etc/ansible/hosts did not meet script requirements, check plugin documentation if this is unexpected
- statically imported: /home/masteryoda/ansible_playbook/create_admins.yml
- PLAYBOOK: create_users.yml *******************************************************************
- 1 plays in create_users.yml
- PLAY [Centos] ********************************************************************************
- TASK [Gathering Facts] ***********************************************************************
- task path: /home/masteryoda/ansible_playbook/create_users.yml:2
- ok: [192.168.1.8]
- META: ran handlers
- TASK [Check if group admins exists] **********************************************************
- task path: /home/masteryoda/ansible_playbook/create_users.yml:7
- ok: [192.168.1.8] => {"ansible_facts": {"getent_group": {"admins": ["x", "1001", ""]}}, "changed": false}
- TASK [Adding "c22671" as admin] *************************************************************
- task path: /home/masteryoda/ansible_playbook/create_admins.yml:1
- fatal: [192.168.1.8]: FAILED! => {"msg": "The conditional check '\"admins\" in etc_group.stdout_lines' failed. The error was: error while evaluating conditional (\"admins\" in etc_group.stdout_lines): Unable to look up a name or access an attribute in template string ({% if \"admins\" in etc_group.stdout_lines %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/home/masteryoda/ansible_playbook/create_admins.yml': line 1, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Adding \"{{ user }}\" as admin\n ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n with_items:\n - {{ foo }}\n\nShould be written as:\n\n with_items:\n - \"{{ foo }}\"\n"}
- to retry, use: --limit @/home/masteryoda/ansible_playbook/create_users.retry
- PLAY RECAP ***********************************************************************************
- 192.168.1.8 : ok=2 changed=0 unreachable=0 failed=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement