summaryrefslogtreecommitdiffstats
path: root/roles/openshift_ansible_inventory/tasks/main.yml
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-10-29 14:59:20 -0400
committerKenny Woodson <kwoodson@redhat.com>2015-10-29 14:59:20 -0400
commit7f765d52313f433f61fa1fec61a6674b5c42a5ba (patch)
treea8649f68f89cfa5199fc84ad514c2e0a539b2b1f /roles/openshift_ansible_inventory/tasks/main.yml
parent16d1bce0be2f8c3942489630adcb7030aecadc55 (diff)
downloadopenshift-7f765d52313f433f61fa1fec61a6674b5c42a5ba.tar.gz
openshift-7f765d52313f433f61fa1fec61a6674b5c42a5ba.tar.bz2
openshift-7f765d52313f433f61fa1fec61a6674b5c42a5ba.tar.xz
openshift-7f765d52313f433f61fa1fec61a6674b5c42a5ba.zip
Removing the template and doing to_nice_yaml instead
Diffstat (limited to 'roles/openshift_ansible_inventory/tasks/main.yml')
-rw-r--r--roles/openshift_ansible_inventory/tasks/main.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/roles/openshift_ansible_inventory/tasks/main.yml b/roles/openshift_ansible_inventory/tasks/main.yml
index 5fe77e38b..9cc15c0a8 100644
--- a/roles/openshift_ansible_inventory/tasks/main.yml
+++ b/roles/openshift_ansible_inventory/tasks/main.yml
@@ -3,8 +3,9 @@
name: openshift-ansible-inventory
state: present
-- template:
- src: multi_ec2.yaml.j2
+- name:
+ copy:
+ content: "{{ oo_inventory_accounts | to_nice_yaml }}"
dest: /etc/ansible/multi_ec2.yaml
group: "{{ oo_inventory_group }}"
owner: "{{ oo_inventory_owner }}"
@@ -39,5 +40,5 @@
owner: root
group: libra_ops
recurse: yes
- mode: '2750'
+ mode: '2770'
when: oo_inventory_cache_location is defined