diff --git a/tasks/configure.yml b/tasks/configure.yml index 58eba8263ca104be994047258a0dfb1439b7647c..730eefa78bf39d504a9d4103b3f5cbf96d393769 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -21,7 +21,7 @@ owner='root' group='root' mode='644' - with_items: '{{ groups.webserver }}' + with_items: '{{ groups.webserver|default([]) }}' notify: "Check HAProxy Config" - name: "Create host ssl lists" @@ -31,7 +31,7 @@ owner='root' group='root' mode='644' - with_items: '{{ groups.webserver }}' + with_items: '{{ groups.webserver|default([]) }}' notify: "Check HAProxy Config" - name: "Create host path lists" @@ -41,7 +41,7 @@ group='root' mode='644' state='touch' - with_items: '{{ groups.webserver }}' + with_items: '{{ groups.webserver|default([]) }}' changed_when: false - name: "Create use bigpipe host lists" @@ -69,7 +69,7 @@ group='root' mode='644' state='touch' - with_items: '{{ groups.webserver }}' + with_items: '{{ groups.webserver|default([]) }}' changed_when: false - name: "Update blacklists" diff --git a/tasks/pullcerts.yml b/tasks/pullcerts.yml index 5e9e5688c930c326878aaa9d758e15ec211c6d0a..4ec71da1ba960eb5f064fd7192b8fbfac8ddf5e1 100644 --- a/tasks/pullcerts.yml +++ b/tasks/pullcerts.yml @@ -3,7 +3,7 @@ - name: "Find out active proxy" set_fact: proxy_active_host={{ item }} - with_items: '{{ groups.proxyserver }}' + with_items: '{{ groups.proxyserver|default([]) }}' when: hostvars[item].proxy_active|default(true) - name: "Set directory permissions to current user"