· 7 years ago · May 04, 2018, 09:46 PM
1Installed ansible-tower-cli from pip onto Centos 7.4 with Ansible 2.5.1
2I have logged in with the cli program and created a ~/.tower_cli.cfg
3AWX 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################################################
17Running the above playbook returns this error:
18The full traceback is:
19Traceback (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
27tower_cli.exceptions.TowerCLIError: failed to parse some of the extra variables.
28variables:
29[general]
30host = http://awx-web-svc.gsm.svc.cluster.local:8052
31username = admin
32oauth_token = XXXXXXXXXXXXXXXXXXXXXXXXXX
33verify_ssl = False