CORD-391 - cleaned up ansible to pass cleanly through ansible-lint
Change-Id: I90284704255edc19abbdb239852c520a4bf48df4
diff --git a/roles/head-node/files/compute-node.yml b/roles/head-node/files/compute-node.yml
index ba2bd24..b8eb496 100644
--- a/roles/head-node/files/compute-node.yml
+++ b/roles/head-node/files/compute-node.yml
@@ -3,7 +3,8 @@
hosts: all
remote_user: ubuntu
tasks:
- - include_vars: vars/compute-node.yml
+ - name: Include variables
+ include_vars: vars/compute-node.yml
- name: Configure compute hosts to use DNS server
hosts: all
diff --git a/roles/head-node/files/connect-switch.yml b/roles/head-node/files/connect-switch.yml
index da4edb0..5fdb996 100644
--- a/roles/head-node/files/connect-switch.yml
+++ b/roles/head-node/files/connect-switch.yml
@@ -5,6 +5,7 @@
- name: Lookup DHCP harvest
shell: cat /etc/bind/maas/dhcp_harvest.inc | grep -i " cc:37:ab\| 70:72;cf" | awk '{print $1}'
register: switches
+ changed_when: false
- name: Add hosts into inventory
add_host: name={{item}} group=fabric
with_items: "{{switches.stdout_lines}}"
@@ -24,9 +25,11 @@
- name: Purge hardware tables
command: /root/purge
+ changed_when: true
- name: Start indigo agent
command: /root/connect -bg
+ changed_when: true
- name: Verify indigo agent has been started
command: ps aux