summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-04-27 15:49:39 -0400
committerKenny Woodson <kwoodson@redhat.com>2015-04-27 15:49:39 -0400
commita83bea9a190fde22cceb6e3ef3d88a38e3eca1a4 (patch)
tree1e62562aa5e8e92b33c3c901a5e8a436a3569b70
parent8ce5e1de898d2fd2c4aa4620f31b57b62ed0c5d6 (diff)
parentcf9ae3a2d7e8411974282dc75735b0e8f3a9ba8e (diff)
downloadopenshift-a83bea9a190fde22cceb6e3ef3d88a38e3eca1a4.tar.gz
openshift-a83bea9a190fde22cceb6e3ef3d88a38e3eca1a4.tar.bz2
openshift-a83bea9a190fde22cceb6e3ef3d88a38e3eca1a4.tar.xz
openshift-a83bea9a190fde22cceb6e3ef3d88a38e3eca1a4.zip
Merge pull request #189 from kwoodson/default_multiec2
Ansible tower default inventory will use multi_ec2
-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'