blob: 4f3a46540b400cf088da84a8919cc18103657d11 [file] [log] [blame]
David K. Bainbridgee05b5562016-07-08 11:07:33 -07001---
Zack Williams843b4f22017-01-17 22:17:37 -07002# automation-integration/tasks/main.yml
David K. Bainbridgee05b5562016-07-08 11:07:33 -07003
Zack Williams843b4f22017-01-17 22:17:37 -07004- name: Template do-enlist-compute-node script to /etc/maas/ansible/do-enlist-compute-node
David K. Bainbridgee05b5562016-07-08 11:07:33 -07005 become: yes
6 template:
Zack Williams843b4f22017-01-17 22:17:37 -07007 src=do-enlist-compute-node.j2
David K. Bainbridgee05b5562016-07-08 11:07:33 -07008 dest=/etc/maas/ansible/do-enlist-compute-node
9 owner=maas
10 group=maas
11 mode=0755
12
Zack Williams843b4f22017-01-17 22:17:37 -070013- name: Have MAAS do-ansible script run do-enlist-compute-node script
David K. Bainbridgee05b5562016-07-08 11:07:33 -070014 become: yes
15 lineinfile:
16 dest=/etc/maas/ansible/do-ansible
17 line='/etc/maas/ansible/do-enlist-compute-node $ID $HOSTNAME || exit $?'
Zack Williams843b4f22017-01-17 22:17:37 -070018