diff options
author | Aaron LI <aly@aaronly.me> | 2018-03-05 19:27:06 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-03-14 11:35:08 +0800 |
commit | d9b877957c52789e494aeee1ffd4d3128dd9e597 (patch) | |
tree | a1ad213d957d789473b4de2a444efc6ee5a47cc2 /roles/web/tasks | |
parent | de51948fd19f05dbeb4eb5ea0cfd6bc46713abd1 (diff) | |
download | ansible-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.yml | 9 |
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 |