Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. ansible-playbook 2.7.5
  2. config file = /etc/ansible/ansible.cfg
  3. configured module search path = [u'/home/masteryoda/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  4. ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  5. executable location = /usr/bin/ansible-playbook
  6. python version = 2.7.15+ (default, Nov 28 2018, 16:27:22) [GCC 8.2.0]
  7. Using /etc/ansible/ansible.cfg as config file
  8. /etc/ansible/hosts did not meet host_list requirements, check plugin documentation if this is unexpected
  9. /etc/ansible/hosts did not meet script requirements, check plugin documentation if this is unexpected
  10. statically imported: /home/masteryoda/ansible_playbook/create_admins.yml
  11.  
  12. PLAYBOOK: create_users.yml *******************************************************************
  13. 1 plays in create_users.yml
  14.  
  15. PLAY [Centos] ********************************************************************************
  16.  
  17. TASK [Gathering Facts] ***********************************************************************
  18. task path: /home/masteryoda/ansible_playbook/create_users.yml:2
  19. ok: [192.168.1.8]
  20. META: ran handlers
  21.  
  22. TASK [Check if group admins exists] **********************************************************
  23. task path: /home/masteryoda/ansible_playbook/create_users.yml:7
  24. ok: [192.168.1.8] => {"ansible_facts": {"getent_group": {"admins": ["x", "1001", ""]}}, "changed": false}
  25.  
  26. TASK [Adding "c22671" as admin] *************************************************************
  27. task path: /home/masteryoda/ansible_playbook/create_admins.yml:1
  28. 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"}
  29. to retry, use: --limit @/home/masteryoda/ansible_playbook/create_users.retry
  30.  
  31. PLAY RECAP ***********************************************************************************
  32. 192.168.1.8 : ok=2 changed=0 unreachable=0 failed=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement