Skip to content
Snippets Groups Projects
Commit cd022daf 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 10104973
No related branches found
No related tags found
No related merge requests found
---
# file: roles/letsencrypt/handler/main.yml
- import_tasks: '../../haproxy/handlers/main.yml'
- include_tasks: '../../haproxy/handlers/main.yml'
tags: 'always'
......@@ -3,7 +3,7 @@
- name: "LetsEncrypt Role"
set_fact: role_letsencrypt_started=true
tags: always
tags: 'always'
- block:
......@@ -20,14 +20,16 @@
changed_when: false
tags: 'always'
- import_tasks: install.yml
- include_tasks: install.yml
tags: 'always'
- include_tasks: cert.yml
with_items: '{{ letsencrypt_certificates|default([]) }}'
loop_control:
loop_var: domain
tags: 'always'
- import_tasks: renew.yml
- include_tasks: renew.yml
when: letsencrypt_certs_available is defined and letsencrypt_certs_available.stat.exists and (proxy_active is not defined or proxy_active)
tags: 'renew'
......
......@@ -34,7 +34,8 @@
state: 'absent'
- name: "Build HaProxy Certs"
import_tasks: '../../haproxy/tasks/buildcerts.yml'
include_tasks: '../../haproxy/tasks/buildcerts.yml'
tags: 'always'
- name: "Start services"
service:
......
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