From dc4c9b4fb2a9f4318f5f45354c523ebd0b23d03d Mon Sep 17 00:00:00 2001 From: Matthieu Bertin Date: Thu, 1 Jun 2017 00:59:48 +0200 Subject: [PATCH 1/5] always_run is deprecated. Use check_mode = no instead.. [DEPRECATION WARNING]: always_run is deprecated. Use check_mode = no instead.. This feature will be removed in version 2.4. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index d6e9878..da8bcdb 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -32,7 +32,7 @@ register: dhcpd_register_nameservers changed_when: False when: dhcpd_mode == 'server' - always_run: yes + check_mode: no - name: Convert list of nameservers to Ansible list set_fact: From 25ef9932c6d8eb03cb20d9aba5774d6168678aa7 Mon Sep 17 00:00:00 2001 From: Matthieu Bertin Date: Thu, 1 Jun 2017 09:38:43 +0200 Subject: [PATCH 2/5] Update main.yml --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index da8bcdb..0d76d98 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -32,7 +32,7 @@ register: dhcpd_register_nameservers changed_when: False when: dhcpd_mode == 'server' - check_mode: no + check_mode: False - name: Convert list of nameservers to Ansible list set_fact: From 0bca8d40b690800e697897d3fccb2db9b7752d8b Mon Sep 17 00:00:00 2001 From: Matthieu Bertin Date: Mon, 19 Jun 2017 12:06:32 +0200 Subject: [PATCH 3/5] bumped ansible min version and updated changelog --- CHANGES.rst | 5 ++++- meta/main.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index e2ddc67..9c67af5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,10 @@ Changelog ========= + *Unreleased* + +- Fix Ansible 2.2 deprecation warnings. [brzhk] + v0.1.2 ------ @@ -43,4 +47,3 @@ v0.1.0 *Released: 2015-03-30* - First release [drybjed] - diff --git a/meta/main.yml b/meta/main.yml index 96eaff6..497c727 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -9,7 +9,7 @@ galaxy_info: description: 'Install and configure ISC DHCP Server' company: 'DebOps' license: 'GNU General Public License v3' - min_ansible_version: '1.7.0' + min_ansible_version: '2.2.0' platforms: - name: Ubuntu versions: From debd34088c02c844a5ef96d1b5cce4b370bfe79c Mon Sep 17 00:00:00 2001 From: Matthieu Bertin Date: Mon, 19 Jun 2017 20:16:50 +0200 Subject: [PATCH 4/5] upgraded changelog --- CHANGES.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 9c67af5..23a123f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,7 +3,7 @@ Changelog *Unreleased* -- Fix Ansible 2.2 deprecation warnings. [brzhk] +- Fix Ansible 2.2 deprecation warnings which requires Ansible 2.2 or higher. Support for older Ansible versions is dropped. [brzhk] v0.1.2 ------ From 9d4df31e4d9bcb365cc3a9585b49a2ee7a9a1218 Mon Sep 17 00:00:00 2001 From: Matthieu Bertin Date: Mon, 19 Jun 2017 23:40:20 +0200 Subject: [PATCH 5/5] Best sed tutorial ever. --- CHANGES.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 23a123f..862f735 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,7 +3,8 @@ Changelog *Unreleased* -- Fix Ansible 2.2 deprecation warnings which requires Ansible 2.2 or higher. Support for older Ansible versions is dropped. [brzhk] +- Fix Ansible 2.2 deprecation warnings which requires Ansible 2.2 or higher. + Support for older Ansible versions is dropped. [brzhk] v0.1.2 ------