Fix Ansible 2.8 deprecation warnings for bare vars.

This commit is contained in:
Jeff Geerling 2019-05-31 22:32:09 -05:00
parent 8beeb319fd
commit e89289d5f1
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
owner: root
group: "{{ root_group }}"
mode: 0644
when: nginx_yum_repo_enabled
when: nginx_yum_repo_enabled | bool
- name: Ensure nginx is installed.
package:

View File

@ -5,7 +5,7 @@
state: present
update_cache: true
register: nginx_ppa_added
when: nginx_ppa_use
when: nginx_ppa_use | bool
- name: Ensure nginx will reinstall if the PPA was just added.
apt:

View File

@ -3,7 +3,7 @@
file:
path: "{{ nginx_default_vhost_path }}"
state: absent
when: nginx_remove_default_vhost
when: nginx_remove_default_vhost | bool
notify: restart nginx
- name: Ensure nginx_vhost_path exists.