Skip to content

Commit

Permalink
Add task tags convenient for nginx-includes and nginx confs
Browse files Browse the repository at this point in the history
  • Loading branch information
fullyint committed Jan 29, 2017
1 parent 8812bc9 commit 346d97e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -1,4 +1,5 @@
### HEAD
* Accommodate template inheritance for nginx confs ([#740](https://github.com/roots/trellis/pull/740))
* Add `apt_packages_custom` to customize Apt packages ([#735](https://github.com/roots/trellis/pull/735))
* Enable Let's Encrypt to detect updated `site_hosts` ([#630](https://github.com/roots/trellis/pull/630))
* Add `SKIP_GALAXY` env var to skip galaxy install in Vagrant ([#734](https://github.com/roots/trellis/pull/734))
Expand Down
2 changes: 1 addition & 1 deletion roles/letsencrypt/tasks/certificates.yml
Expand Up @@ -22,7 +22,7 @@
changed_when: false
when: site_uses_letsencrypt
with_dict: "{{ wordpress_sites }}"
tags: [wordpress, wordpress-setup]
tags: [wordpress, wordpress-setup, nginx-includes]

- name: Generate CSRs
shell: "openssl req -new -sha256 -key '{{ letsencrypt_keys_dir }}/{{ item.key }}.key' -subj '/' -reqexts SAN -config <(cat /etc/ssl/openssl.cnf <(printf '[SAN]\nsubjectAltName=DNS:{{ site_hosts | join(',DNS:') }}')) > {{ acme_tiny_data_directory }}/csrs/{{ item.key }}-{{ letsencrypt_cert_ids[item.key] }}.csr"
Expand Down
1 change: 1 addition & 0 deletions roles/nginx/tasks/main.yml
Expand Up @@ -42,6 +42,7 @@
src: "{{ nginx_conf }}"
dest: "{{ nginx_path }}/nginx.conf"
notify: reload nginx
tags: nginx-includes

- name: Disable default server
file:
Expand Down
2 changes: 1 addition & 1 deletion roles/wordpress-setup/tasks/main.yml
Expand Up @@ -36,7 +36,7 @@
notify: reload php-fpm

- include: nginx-includes.yml
tags: [wordpress-setup-nginx-includes, wordpress-setup-nginx]
tags: [nginx-includes, wordpress-setup-nginx]

- include: nginx.yml
tags: wordpress-setup-nginx
Expand Down
1 change: 1 addition & 0 deletions roles/wordpress-setup/tasks/nginx.yml
Expand Up @@ -29,6 +29,7 @@
dest: "{{ nginx_path }}/sites-available/{{ item.key }}.conf"
with_dict: "{{ wordpress_sites }}"
notify: reload nginx
tags: nginx-includes

- name: Enable WordPress site
file:
Expand Down

0 comments on commit 346d97e

Please sign in to comment.