David K. Bainbridge | ed10154 | 2016-05-18 20:26:15 -0700 | [diff] [blame] | 1 | - 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: |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 12 | repo={{ provision.location }} |
David K. Bainbridge | ed10154 | 2016-05-18 20:26:15 -0700 | [diff] [blame] | 13 | dest=/tmp/ansible.maas |
| 14 | clone=yes |
| 15 | force=yes |
| 16 | update=yes |
| 17 | |
David K. Bainbridge | e18f57b | 2016-05-23 15:40:58 -0700 | [diff] [blame] | 18 | - name: Ensure Ansible Roles Exist |
| 19 | become: yes |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 20 | command: cp -rf /tmp/ansible.maas/{{ provision.role_path }} /etc/maas/ansible |
David K. Bainbridge | e18f57b | 2016-05-23 15:40:58 -0700 | [diff] [blame] | 21 | |
| 22 | - name: Ensure Ansible Roles Ownership |
| 23 | become: yes |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 24 | file: dest=/etc/maas/ansible/{{ provision.role_path }} owner=maas group=maas recurse=yes |
David K. Bainbridge | ed10154 | 2016-05-18 20:26:15 -0700 | [diff] [blame] | 25 | |
| 26 | - name: Ensure Compute Node Playbook |
| 27 | become: yes |
David K. Bainbridge | 10b0c11 | 2016-05-24 13:17:23 -0700 | [diff] [blame] | 28 | template: |
| 29 | src=files/compute-node.yml.j2 |
David K. Bainbridge | ed10154 | 2016-05-18 20:26:15 -0700 | [diff] [blame] | 30 | dest=/etc/maas/ansible/compute-node.yml |
| 31 | owner=maas |
| 32 | group=maas |
| 33 | mode=0644 |