Use cord_provisioned boolean in playbooks
Change-Id: Ibe045e880c2d343c793a311645cce162f8336551
diff --git a/cord-compute-playbook.yml b/cord-compute-playbook.yml
index b0f191e..0176226 100644
--- a/cord-compute-playbook.yml
+++ b/cord-compute-playbook.yml
@@ -12,7 +12,7 @@
hosts: all
become: yes
roles:
- - { role: dns-configure, when: on_cloudlab }
+ - { role: dns-configure, when: not cord_provisioned }
- name: Prep systems
hosts: compute
diff --git a/cord-head-playbook.yml b/cord-head-playbook.yml
index dd550c8..ff226ad 100644
--- a/cord-head-playbook.yml
+++ b/cord-head-playbook.yml
@@ -15,15 +15,15 @@
hosts: head
become: yes
roles:
- - { role: dns-nsd, when: on_cloudlab }
- - { role: dns-unbound, when: on_cloudlab }
+ - { role: dns-nsd, when: not cord_provisioned }
+ - { role: dns-unbound, when: not cord_provisioned }
- apt-cacher-ng
- name: Configure all hosts to use DNS server
hosts: all
become: yes
roles:
- - { role: dns-configure, when: on_cloudlab }
+ - { role: dns-configure, when: not cord_provisioned }
- name: Prep systems
hosts: all