aboutsummaryrefslogtreecommitdiffstats
path: root/roles/web
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-12-01 16:07:19 +0800
committerAaron LI <aly@aaronly.me>2018-12-01 16:07:19 +0800
commit7462c9d247fcdaaf6c5d9f11238254f0a37febcc (patch)
tree395b68f335859e612b8615f6e74a7d2b05d970bc /roles/web
parent6eb07e870565a590cc86040f7e4a7f405efdb786 (diff)
downloadansible-dfly-vps-7462c9d247fcdaaf6c5d9f11238254f0a37febcc.tar.bz2
Port to Ansible 2.7
Diffstat (limited to 'roles/web')
-rw-r--r--roles/web/tasks/main.yml14
1 files changed, 9 insertions, 5 deletions
diff --git a/roles/web/tasks/main.yml b/roles/web/tasks/main.yml
index d25fdc8..e2e402b 100644
--- a/roles/web/tasks/main.yml
+++ b/roles/web/tasks/main.yml
@@ -111,9 +111,12 @@
tags: acme
# Credit: https://shasawas.wordpress.com/2016/05/23/how-to-loop-over-a-set-of-tasks-in-ansible/
-- name: acme - generate and copy domain private keys
- include_tasks: acme-domainkey.yml domain={{ item.name }}
- with_items: "{{ domains }}"
+- block:
+ - name: acme - generate and copy domain private keys
+ include_tasks: acme-domainkey.yml
+ vars:
+ domain: "{{ item.name }}"
+ with_items: "{{ domains }}"
tags:
- acme
- acme-renew
@@ -157,6 +160,7 @@
weekly_acme_client_renewscript="/usr/local/etc/acme/acme-client.sh"
weekly_acme_client_deployscript="/usr/local/etc/acme/deploy.sh"
-- name: nginx - re-generate sites
- include_tasks: nginx-gensites.yml
+- block:
+ - name: nginx - re-generate sites
+ include_tasks: nginx-gensites.yml
tags: sites