From 8e71dbbcd0bf42e41aadb8118569c536d6c87e57 Mon Sep 17 00:00:00 2001 From: lipan Date: Mon, 30 May 2016 17:48:19 +0800 Subject: [PATCH] do not change dnsmasq.servers at ensure stage --- playbooks/roles/dnsmasq/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/dnsmasq/tasks/main.yaml b/playbooks/roles/dnsmasq/tasks/main.yaml index 38d8c63..28cfbbd 100644 --- a/playbooks/roles/dnsmasq/tasks/main.yaml +++ b/playbooks/roles/dnsmasq/tasks/main.yaml @@ -19,7 +19,7 @@ - name: ensure /etc/dnsmasq.servers template: src=dnsmasq.servers.conf.j2 dest=/etc/dnsmasq.servers - when: result|success + when: result|success and bootstrapping|bool - name: ensure /etc/dnsmasq.servers file: path="{{ dnsmasq_servers_path }}" state=touch