Skip to content
Snippets Groups Projects
Commit 749a8bd2 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#72 All includes are now include_tasks and they...

ansible-playbooks/general#72 All includes are now include_tasks and they always have a tag associated
parent 8f6f5248
No related branches found
No related tags found
No related merge requests found
...@@ -3,12 +3,13 @@ ...@@ -3,12 +3,13 @@
- name: "HaProxy Role" - name: "HaProxy Role"
set_fact: role_haproxy_started=true set_fact: role_haproxy_started=true
tags: always tags: 'always'
- block: - block:
- import_tasks: install.yml - include_tasks: install.yml
- import_tasks: configure.yml tags: 'always'
- include_tasks: configure.yml
tags: Config tags: Config
when: '"haproxy" not in excluded_roles' when: '"haproxy" not in excluded_roles'
...@@ -21,12 +22,15 @@ ...@@ -21,12 +22,15 @@
loop_control: loop_control:
loop_var: domain loop_var: domain
when: domain.letsencrypt|default(false) and domain.active|default(true) when: domain.letsencrypt|default(false) and domain.active|default(true)
tags: 'always'
- name: "Renew Existing Cert" - name: "Renew Existing Cert"
import_tasks: '../../letsencrypt/tasks/renew.yml' include_tasks: '../../letsencrypt/tasks/renew.yml'
tags: 'always'
- name: "Build HaCerts" - name: "Build HaCerts"
import_tasks: 'buildcerts.yml' include_tasks: 'buildcerts.yml'
tags: 'always'
- name: "Set directory permissions to current user" - name: "Set directory permissions to current user"
file: file:
...@@ -42,9 +46,9 @@ ...@@ -42,9 +46,9 @@
- block: - block:
- name: "Pull Certs from active Proxy" - name: "Pull Certs from active Proxy"
import_tasks: 'pullcerts.yml' include_tasks: 'pullcerts.yml'
tags: Certs
tags: Certs
when: 'not proxy_active and "letsencrypt" not in excluded_roles' when: 'not proxy_active and "letsencrypt" not in excluded_roles'
- name: "Set directory permissions to root" - name: "Set directory permissions to root"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment