blob: 3eb2785532d66de777db212c9ba21cce42e6d9fa [file] [log] [blame]
David K. Bainbridgeed101542016-05-18 20:26:15 -07001- name: Ensure MAAS Ansible Config Directory
2 become: yes
3 file:
4 path=/etc/maas/ansible
5 owner=maas
6 group=maas
7 state=directory
8
9- name: Ensure Ansible Compute Config Files
10 become: yes
11 git:
12 repo=http://gerrit.opencord.org/maas
13 dest=/tmp/ansible.maas
14 clone=yes
15 force=yes
16 update=yes
17
David K. Bainbridgee18f57b2016-05-23 15:40:58 -070018- name: Ensure Ansible Roles Exist
19 become: yes
20 command: cp -rf /tmp/ansible.maas/{{ item }} /etc/maas/ansible
21 with_items:
22 - roles
23
24- name: Ensure Ansible Roles Ownership
25 become: yes
26 file: dest=/etc/maas/ansible/{{ item }} owner=maas group=maas recurse=yes
David K. Bainbridgeed101542016-05-18 20:26:15 -070027 with_items:
28 - roles
David K. Bainbridgeed101542016-05-18 20:26:15 -070029
30- name: Ensure Compute Node Playbook
31 become: yes
32 copy:
33 src=files/compute-node.yml
34 dest=/etc/maas/ansible/compute-node.yml
35 owner=maas
36 group=maas
37 mode=0644