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: |
| 12 | repo=http://gerrit.opencord.org/maas |
| 13 | dest=/tmp/ansible.maas |
| 14 | clone=yes |
| 15 | force=yes |
| 16 | update=yes |
| 17 | |
| 18 | - name: Ensure Ansible Roles |
| 19 | become_user: maas |
David K. Bainbridge | cd4caeb | 2016-05-23 14:58:12 -0700 | [diff] [blame^] | 20 | command: cp -r /tmp/ansible.maas/{{ item }} /etc/maas/ansible owner=maas group=maas |
David K. Bainbridge | ed10154 | 2016-05-18 20:26:15 -0700 | [diff] [blame] | 21 | with_items: |
| 22 | - roles |
David K. Bainbridge | ed10154 | 2016-05-18 20:26:15 -0700 | [diff] [blame] | 23 | |
| 24 | - name: Ensure Compute Node Playbook |
| 25 | become: yes |
| 26 | copy: |
| 27 | src=files/compute-node.yml |
| 28 | dest=/etc/maas/ansible/compute-node.yml |
| 29 | owner=maas |
| 30 | group=maas |
| 31 | mode=0644 |