Skip to content

Commit

Permalink
Ansible deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmeijerman authored Jun 11, 2019
1 parent 55840be commit a6bb054
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
with_items:
- sites-available/default.conf
- sites-enabled/default.conf
when: not nginx_set_default_server
when: not nginx_set_default_server | bool
notify: Restart nginx

- name: Write default server
Expand All @@ -86,15 +86,15 @@
owner: root
group: root
mode: 0644
when: nginx_set_default_server
when: nginx_set_default_server | bool
notify: Restart nginx

- name: Activate default server
file:
src: /etc/nginx/sites-available/default.conf
dest: /etc/nginx/sites-enabled/default.conf
state: link
when: nginx_set_default_server
when: nginx_set_default_server | bool
notify: Restart nginx

- name: Write other servers
Expand Down

0 comments on commit a6bb054

Please sign in to comment.