diff options
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_ansible_inventory/tasks/main.yml | 20 |
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' |