Skip to content
Snippets Groups Projects
Commit 009b33c0 authored by jurgenhaas's avatar jurgenhaas
Browse files

Replace deprecated "include" directive in Ansible 2.4

parent e226ccf2
No related branches found
No related tags found
No related merge requests found
---
# file: roles/letsencrypt/handler/main.yml
- include: '../../haproxy/handlers/main.yml'
- include_tasks: '../../haproxy/handlers/main.yml'
......@@ -20,14 +20,14 @@
changed_when: false
tags: 'always'
- include: install.yml
- include_tasks: install.yml
- include: cert.yml
- include_tasks: cert.yml
with_items: '{{ letsencrypt_certificates|default([]) }}'
loop_control:
loop_var: domain
- include: 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,7 @@
state: 'absent'
- name: "Build HaProxy Certs"
include: '../../haproxy/tasks/buildcerts.yml'
include_tasks: '../../haproxy/tasks/buildcerts.yml'
when: "'No renewals were attempted.' not in renew_result.stdout"
- name: "Start services"
......
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