blob: d084a67f0538bb9c493d85b41c5da7ca7e8d4a88 [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:
David K. Bainbridge10b0c112016-05-24 13:17:23 -070012 repo={{ provision.location }}
David K. Bainbridgeed101542016-05-18 20:26:15 -070013 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
David K. Bainbridge10b0c112016-05-24 13:17:23 -070020 command: cp -rf /tmp/ansible.maas/{{ provision.role_path }} /etc/maas/ansible
David K. Bainbridgee18f57b2016-05-23 15:40:58 -070021
22- name: Ensure Ansible Roles Ownership
23 become: yes
David K. Bainbridge10b0c112016-05-24 13:17:23 -070024 file: dest=/etc/maas/ansible/{{ provision.role_path }} owner=maas group=maas recurse=yes
David K. Bainbridgeed101542016-05-18 20:26:15 -070025
David K. Bainbridge0820cab2016-06-02 17:43:32 -070026- name: Ensure Ansible Provisioning Script
27 become: yes
28 copy:
29 dest=/etc/maas/ansible/do-ansible
30 src=files/do-ansible
31 owner=maas
32 group=maas
33 mode=0755
34
35- name: Ensure Provisioning Log Directory
36 become: yes
37 file:
38 path=/etc/maas/ansible/logs
39 state=directory
40 owner=maas
41 group=maas
42 mode=0755
43
David K. Bainbridgeed101542016-05-18 20:26:15 -070044- name: Ensure Compute Node Playbook
45 become: yes
David K. Bainbridge10b0c112016-05-24 13:17:23 -070046 template:
47 src=files/compute-node.yml.j2
David K. Bainbridgeed101542016-05-18 20:26:15 -070048 dest=/etc/maas/ansible/compute-node.yml
49 owner=maas
50 group=maas
51 mode=0644