aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-09-14 22:51:41 -0400
committerMitch Riedstra <mitch@riedstra.us>2020-09-14 22:51:41 -0400
commit1cf051de9e5efc7b1c7cced80d853c668fa7d608 (patch)
tree2b4efae149f3baa897e08141aaf5aa0b00c3123b
parent3ca81c0d25ff302ac86ce1c178ea710eb7ba7074 (diff)
downloadnginx-1cf051de9e5efc7b1c7cced80d853c668fa7d608.tar.gz
nginx-1cf051de9e5efc7b1c7cced80d853c668fa7d608.tar.xz
Add some tags
-rw-r--r--tasks/main.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index 9c8c4b1..6f0d944 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -16,6 +16,8 @@
loop:
- "{{nginx_conf_dir}}"
- "{{nginx_conf_dir}}/conf.d"
+ tags:
+ - conf
- name: Create Acme Challenge directory
file:
path: /var/lib/acme-challenge
@@ -23,6 +25,8 @@
owner: "{{nginx_conf_owner}}"
group: "{{nginx_conf_group}}"
mode: "0755"
+ tags:
+ - conf
- name: Create Robots directory
file:
path: /var/lib/nginx-robots
@@ -30,6 +34,9 @@
owner: "{{nginx_conf_owner}}"
group: "{{nginx_conf_group}}"
mode: "0755"
+ tags:
+ - robots
+ - conf
- name: Create Robots sub directory
file:
path: '/var/lib/nginx-robots/{{item.name}}'
@@ -38,12 +45,18 @@
group: "{{nginx_conf_group}}"
mode: "0755"
loop: '{{nginx_robots}}'
+ tags:
+ - robots
+ - conf
- name: 'Install {{item.name}} robots'
copy:
dest: '/var/lib/nginx-robots/{{item.name}}/robots.txt'
content: '{{item.robots_txt}}'
owner: '{{nginx_conf_owner}}'
loop: '{{nginx_robots}}'
+ tags:
+ - robots
+ - conf
- name: Install Robots includes
copy:
dest: "{{nginx_conf_dir}}/robots_{{item.name}}"
@@ -53,6 +66,9 @@
}
owner: '{{nginx_conf_owner}}'
loop: '{{nginx_robots}}'
+ tags:
+ - robots
+ - conf
- name: Install Main 'nginx.conf'
template:
src: nginx/nginx.conf
@@ -63,6 +79,8 @@
when: not nginx_custom_template
notify:
- Restart Nginx
+ tags:
+ - conf
- name: Install custom 'nginx.conf'
template:
src: "{{ansible_hostname}}/nginx/nginx.conf"
@@ -73,6 +91,8 @@
when: nginx_custom_template
notify:
- Restart Nginx
+ tags:
+ - conf
- name: Install Other Nginx templates
template:
src: "nginx/{{item}}"
@@ -85,6 +105,8 @@
- acl
notify:
- Restart Nginx
+ tags:
+ - conf
- name: Install Htpasswd
copy:
src: '{{nginx_htpasswd}}'
@@ -92,3 +114,6 @@
owner: "{{nginx_conf_owner}}"
group: "{{nginx_conf_group}}"
when: nginx_htpasswd is defined
+ tags:
+ - conf
+ - htpasswd