aboutsummaryrefslogtreecommitdiffstats
path: root/roles/web/tasks
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-05 19:27:06 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 11:35:08 +0800
commitd9b877957c52789e494aeee1ffd4d3128dd9e597 (patch)
treea1ad213d957d789473b4de2a444efc6ee5a47cc2 /roles/web/tasks
parentde51948fd19f05dbeb4eb5ea0cfd6bc46713abd1 (diff)
downloadansible-dfly-vps-d9b877957c52789e494aeee1ffd4d3128dd9e597.tar.bz2
web: create files/{acme,nginx} to organize files better
Diffstat (limited to 'roles/web/tasks')
-rw-r--r--roles/web/tasks/main.yml9
1 files changed, 4 insertions, 5 deletions
diff --git a/roles/web/tasks/main.yml b/roles/web/tasks/main.yml
index c1d6b17..d554db1 100644
--- a/roles/web/tasks/main.yml
+++ b/roles/web/tasks/main.yml
@@ -30,7 +30,7 @@
- name: nginx - copy conf.d/ config directory
copy:
- src: conf.d/ # trailing '/' -> directory contents
+ src: nginx/conf.d/ # trailing '/' -> directory contents
dest: /usr/local/etc/nginx/conf.d/
- name: nginx - create sites/ directory
@@ -43,7 +43,7 @@
- name: nginx - copy nginx.conf
copy:
- src: nginx.conf
+ src: nginx/nginx.conf
dest: /usr/local/etc/nginx/nginx.conf
# XXX: Validation runs aganist a temporary file, thus nginx fails to
# include other config files!
@@ -69,9 +69,8 @@
src: "{{ item }}"
dest: /usr/local/etc/acme/{{ item | basename }}
mode: 0755
- with_items:
- - acme-client.sh
- - deploy.sh
+ with_fileglob:
+ - "acme/*.sh"
- name: (local) acme - check account private key existence
become: false