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 @@
- name: "HaProxy Role"
set_fact: role_haproxy_started=true
tags: always
tags: 'always'
- block:
- import_tasks: install.yml
- import_tasks: configure.yml
- include_tasks: install.yml
tags: 'always'
- include_tasks: configure.yml
tags: Config
when: '"haproxy" not in excluded_roles'
......@@ -21,12 +22,15 @@
loop_control:
loop_var: domain
when: domain.letsencrypt|default(false) and domain.active|default(true)
tags: 'always'
- name: "Renew Existing Cert"
import_tasks: '../../letsencrypt/tasks/renew.yml'
include_tasks: '../../letsencrypt/tasks/renew.yml'
tags: 'always'
- name: "Build HaCerts"
import_tasks: 'buildcerts.yml'
include_tasks: 'buildcerts.yml'
tags: 'always'
- name: "Set directory permissions to current user"
file:
......@@ -42,9 +46,9 @@
- block:
- 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'
- 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