summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-04-27 15:40:59 -0400
committerKenny Woodson <kwoodson@redhat.com>2015-04-27 15:40:59 -0400
commitcf9ae3a2d7e8411974282dc75735b0e8f3a9ba8e (patch)
treedb4cac3f70c68006ccefb2c537cd17fc8be7ea57
parentc85e91fdca031eba06481a24f74aa076ae9a4d38 (diff)
downloadopenshift-cf9ae3a2d7e8411974282dc75735b0e8f3a9ba8e.tar.gz
openshift-cf9ae3a2d7e8411974282dc75735b0e8f3a9ba8e.tar.bz2
openshift-cf9ae3a2d7e8411974282dc75735b0e8f3a9ba8e.tar.xz
openshift-cf9ae3a2d7e8411974282dc75735b0e8f3a9ba8e.zip
Updating ansible.cfg to use multi_ec2.py for inventory
-rw-r--r--roles/openshift_ansible_inventory/tasks/main.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/openshift_ansible_inventory/tasks/main.yml b/roles/openshift_ansible_inventory/tasks/main.yml
index 3990d5750..d68d27f84 100644
--- a/roles/openshift_ansible_inventory/tasks/main.yml
+++ b/roles/openshift_ansible_inventory/tasks/main.yml
@@ -9,3 +9,23 @@
group: "{{ oo_inventory_group }}"
owner: "{{ oo_inventory_owner }}"
mode: "0640"
+
+- file:
+ state: directory
+ dest: /etc/ansible/inventory
+ owner: root
+ group: libra_ops
+ mode: 0750
+
+- file:
+ state: link
+ src: /usr/share/ansible/inventory/multi_ec2.py
+ dest: /etc/ansible/inventory/multi_ec2.py
+ owner: root
+ group: libra_ops
+
+- lineinfile:
+ dest: /etc/ansible/ansible.cfg
+ backrefs: yes
+ regexp: '^(hostfile|inventory)( *)='
+ line: '\1\2= /etc/ansible/inventory'