From 863d3227f513c5f3c5732fcac6a72f3950c308b7 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Wed, 4 Apr 2018 14:01:06 -0500 Subject: [PATCH] Fix deprecation warnings in Ansible 2.5 for state 'present'. --- tasks/setup-Archlinux.yml | 2 +- tasks/setup-Debian.yml | 2 +- tasks/setup-RedHat.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/setup-Archlinux.yml b/tasks/setup-Archlinux.yml index 2aa89ec..46e1f5b 100644 --- a/tasks/setup-Archlinux.yml +++ b/tasks/setup-Archlinux.yml @@ -2,4 +2,4 @@ - name: Ensure nginx is installed. pacman: name: "{{ nginx_package_name }}" - state: installed + state: present diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 2638ce0..554dc2e 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -6,5 +6,5 @@ - name: Ensure nginx is installed. apt: name: "{{ nginx_package_name }}" - state: installed + state: present default_release: "{{ nginx_default_release }}" diff --git a/tasks/setup-RedHat.yml b/tasks/setup-RedHat.yml index 21f3c73..cac0b4b 100644 --- a/tasks/setup-RedHat.yml +++ b/tasks/setup-RedHat.yml @@ -11,4 +11,4 @@ - name: Ensure nginx is installed. yum: name: "{{ nginx_package_name }}" - state: installed + state: present