David K. Bainbridge | e05b556 | 2016-07-08 11:07:33 -0700 | [diff] [blame] | 1 | --- |
Zack Williams | 843b4f2 | 2017-01-17 22:17:37 -0700 | [diff] [blame] | 2 | # automation-integration/tasks/main.yml |
David K. Bainbridge | e05b556 | 2016-07-08 11:07:33 -0700 | [diff] [blame] | 3 | |
Zack Williams | 843b4f2 | 2017-01-17 22:17:37 -0700 | [diff] [blame] | 4 | - name: Template do-enlist-compute-node script to /etc/maas/ansible/do-enlist-compute-node |
David K. Bainbridge | e05b556 | 2016-07-08 11:07:33 -0700 | [diff] [blame] | 5 | become: yes |
| 6 | template: |
Zack Williams | 843b4f2 | 2017-01-17 22:17:37 -0700 | [diff] [blame] | 7 | src=do-enlist-compute-node.j2 |
David K. Bainbridge | e05b556 | 2016-07-08 11:07:33 -0700 | [diff] [blame] | 8 | dest=/etc/maas/ansible/do-enlist-compute-node |
| 9 | owner=maas |
| 10 | group=maas |
| 11 | mode=0755 |
| 12 | |
Zack Williams | 843b4f2 | 2017-01-17 22:17:37 -0700 | [diff] [blame] | 13 | - name: Have MAAS do-ansible script run do-enlist-compute-node script |
David K. Bainbridge | e05b556 | 2016-07-08 11:07:33 -0700 | [diff] [blame] | 14 | become: yes |
| 15 | lineinfile: |
| 16 | dest=/etc/maas/ansible/do-ansible |
| 17 | line='/etc/maas/ansible/do-enlist-compute-node $ID $HOSTNAME || exit $?' |
Zack Williams | 843b4f2 | 2017-01-17 22:17:37 -0700 | [diff] [blame] | 18 | |