summaryrefslogtreecommitdiffstats
path: root/roles/ansible_tower_cli
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-05-04 12:50:41 -0400
committerKenny Woodson <kwoodson@redhat.com>2015-05-04 16:40:03 -0400
commit0364e2cc29ce4f83a770d5bf33f74388c71185b1 (patch)
tree4dfe63a65b93e7b8247ec9a6b3b0783ae845316d /roles/ansible_tower_cli
parent39a44ef1b7e64f73a65249bd930fcc6534788053 (diff)
downloadopenshift-0364e2cc29ce4f83a770d5bf33f74388c71185b1.tar.gz
openshift-0364e2cc29ce4f83a770d5bf33f74388c71185b1.tar.bz2
openshift-0364e2cc29ce4f83a770d5bf33f74388c71185b1.tar.xz
openshift-0364e2cc29ce4f83a770d5bf33f74388c71185b1.zip
Adding towercli config to /etc/tower
Diffstat (limited to 'roles/ansible_tower_cli')
-rw-r--r--roles/ansible_tower_cli/tasks/main.yml8
-rw-r--r--roles/ansible_tower_cli/templates/tower_cli.cfg.j25
2 files changed, 13 insertions, 0 deletions
diff --git a/roles/ansible_tower_cli/tasks/main.yml b/roles/ansible_tower_cli/tasks/main.yml
index adf02ddc6..65aa6bdf4 100644
--- a/roles/ansible_tower_cli/tasks/main.yml
+++ b/roles/ansible_tower_cli/tasks/main.yml
@@ -1,3 +1,11 @@
---
- name: Install python-ansible-tower-cli
yum: name=python-ansible-tower-cli
+
+- template:
+ src: tower_cli.cfg.j2
+ dest: /etc/tower/tower_cli.cfg
+ owner: awx
+ group: awx
+ mode: 0640
+
diff --git a/roles/ansible_tower_cli/templates/tower_cli.cfg.j2 b/roles/ansible_tower_cli/templates/tower_cli.cfg.j2
new file mode 100644
index 000000000..5a0a275b0
--- /dev/null
+++ b/roles/ansible_tower_cli/templates/tower_cli.cfg.j2
@@ -0,0 +1,5 @@
+[general]
+host = {{ oo_towercli_host }}
+username = {{ oo_towercli_username }}
+password = {{ oo_towercli_password }}
+verify_ssl = true