aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-04 19:05:12 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 11:35:08 +0800
commitcf3668c339848240565deee9ae003d9c5e955893 (patch)
tree461849b4b64fd5601c462366590080bc5b11fb4d
parentf8b515e0218e5011044f5e2ebc49bcdc4a0b8e7a (diff)
downloadansible-dfly-vps-cf3668c339848240565deee9ae003d9c5e955893.tar.bz2
add tags: zones, sites
-rw-r--r--roles/dns/tasks/main.yml2
-rw-r--r--roles/web/tasks/main.yml1
2 files changed, 3 insertions, 0 deletions
diff --git a/roles/dns/tasks/main.yml b/roles/dns/tasks/main.yml
index d2d6289..71b4b78 100644
--- a/roles/dns/tasks/main.yml
+++ b/roles/dns/tasks/main.yml
@@ -66,6 +66,7 @@
- name: NSD - get the list of zone files
set_fact:
zonefiles: "{{ lookup('fileglob', '../templates/zones/*.j2', wantlist=True) }}"
+ tags: zones
- debug: var=zonefiles
@@ -73,6 +74,7 @@
include_tasks: nsd-zone.yml zonefile={{ item }}
with_items: "{{ zonefiles }}"
notify: reload-nsd
+ tags: zones
# NOTE: requires variable `zonefiles`
- name: NSD - generate configuration
diff --git a/roles/web/tasks/main.yml b/roles/web/tasks/main.yml
index e2b71b7..c1d6b17 100644
--- a/roles/web/tasks/main.yml
+++ b/roles/web/tasks/main.yml
@@ -136,3 +136,4 @@
- name: nginx - re-generate sites
include_tasks: nginx-gensites.yml
notify: reload-nginx
+ tags: sites