diff --git a/tasks/main.yml b/tasks/main.yml index 638f00bc76d4ff78bdbabcc66d3b767ab5e6875b..e89c38e0a29888e842d7727fb295bb96d0fa5189 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -7,8 +7,8 @@ - block: - - include: install.yml - - include: configure.yml + - include_tasks: install.yml + - include_tasks: configure.yml tags: Config when: '"haproxy" not in excluded_roles' @@ -16,17 +16,17 @@ - block: - name: "Install Certs" - include: '../../letsencrypt/tasks/cert.yml' + include_tasks: '../../letsencrypt/tasks/cert.yml' with_items: '{{ proxy_certificates|default([]) }}' loop_control: loop_var: domain when: domain.letsencrypt|default(false) and domain.active|default(true) - name: "Renew Existing Cert" - include: '../../letsencrypt/tasks/renew.yml' + include_tasks: '../../letsencrypt/tasks/renew.yml' - name: "Build HaCerts" - include: 'buildcerts.yml' + include_tasks: 'buildcerts.yml' - name: "Set directory permissions to current user" file: @@ -42,7 +42,7 @@ - block: - name: "Pull Certs from active Proxy" - include: 'pullcerts.yml' + include_tasks: 'pullcerts.yml' tags: Certs when: 'not proxy_active and "letsencrypt" not in excluded_roles'