From e89289d5f1df820b6614b0424bb9e3d052be5c07 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Fri, 31 May 2019 22:32:09 -0500 Subject: [PATCH] Fix Ansible 2.8 deprecation warnings for bare vars. --- tasks/setup-RedHat.yml | 2 +- tasks/setup-Ubuntu.yml | 2 +- tasks/vhosts.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/setup-RedHat.yml b/tasks/setup-RedHat.yml index 074f664..2507397 100644 --- a/tasks/setup-RedHat.yml +++ b/tasks/setup-RedHat.yml @@ -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: diff --git a/tasks/setup-Ubuntu.yml b/tasks/setup-Ubuntu.yml index 51631a4..2fba70a 100644 --- a/tasks/setup-Ubuntu.yml +++ b/tasks/setup-Ubuntu.yml @@ -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: diff --git a/tasks/vhosts.yml b/tasks/vhosts.yml index 61571fe..7e2995e 100644 --- a/tasks/vhosts.yml +++ b/tasks/vhosts.yml @@ -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.