From 863d3227f513c5f3c5732fcac6a72f3950c308b7 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Wed, 4 Apr 2018 14:01:06 -0500 Subject: [PATCH 1/2] 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 From d2e06498c1ac25620d96feae1b2ad179319fbcde Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Wed, 4 Apr 2018 19:16:35 -0500 Subject: [PATCH 2/2] Fix broken test. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ce37ae9..5d3b1be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ script: - 'docker exec ${container_id} bash -c "echo Success >| /var/www/test/index.html"' # Make sure virtualhost exists. - - 'docker exec --tty ${container_id} env TERM=xterm curl http://test.dev/ | grep "Success"' + - 'docker exec --tty ${container_id} env TERM=xterm curl http://localhost/ | grep "Success"' notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/