Advertisement
lbrigman124

Ansible ansible_module_tower error

May 4th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. Installed ansible-tower-cli from pip onto Centos 7.4 with Ansible 2.5.1
  2. I have logged in with the cli program and created a ~/.tower_cli.cfg
  3. AWX is running in a container without self-signed certs
  4. ######################################
  5. # playbook
  6. ---
  7. - hosts: localhost
  8. gather_facts: false
  9. vars:
  10. - org: gsm
  11. tasks:
  12. - name: "awx_config: add organization"
  13. tower_organization:
  14. name: "{{org}}"
  15. tower_config_file: "~/.tower_cli.cfg"
  16. ################################################
  17. Running the above playbook returns this error:
  18. The full traceback is:
  19. Traceback (most recent call last):
  20. File "/tmp/ansible_uO5r8V/ansible_module_tower_organization.py", line 103, in <module>
  21. main()
  22. File "/tmp/ansible_uO5r8V/ansible_module_tower_organization.py", line 84, in main
  23. tower_auth = tower_auth_config(module)
  24. File "/tmp/ansible_uO5r8V/ansible_modlib.zip/ansible/module_utils/ansible_tower.py", line 57, in tower_auth_config
  25. File "/usr/lib/python2.7/site-packages/tower_cli/utils/parser.py", line 105, in string_to_dict
  26. 'variables.\nvariables: \n%s' % var_string
  27. tower_cli.exceptions.TowerCLIError: failed to parse some of the extra variables.
  28. variables:
  29. [general]
  30. host = http://awx-web-svc.gsm.svc.cluster.local:8052
  31. username = admin
  32. oauth_token = XXXXXXXXXXXXXXXXXXXXXXXXXX
  33. verify_ssl = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement