blob: 3eb2785532d66de777db212c9ba21cce42e6d9fa [file] [log] [blame]
- name: Ensure MAAS Ansible Config Directory
become: yes
file:
path=/etc/maas/ansible
owner=maas
group=maas
state=directory
- name: Ensure Ansible Compute Config Files
become: yes
git:
repo=http://gerrit.opencord.org/maas
dest=/tmp/ansible.maas
clone=yes
force=yes
update=yes
- name: Ensure Ansible Roles Exist
become: yes
command: cp -rf /tmp/ansible.maas/{{ item }} /etc/maas/ansible
with_items:
- roles
- name: Ensure Ansible Roles Ownership
become: yes
file: dest=/etc/maas/ansible/{{ item }} owner=maas group=maas recurse=yes
with_items:
- roles
- name: Ensure Compute Node Playbook
become: yes
copy:
src=files/compute-node.yml
dest=/etc/maas/ansible/compute-node.yml
owner=maas
group=maas
mode=0644