From bc3b58dbadd2b3697756ec9974dd85938ca84d56 Mon Sep 17 00:00:00 2001 From: Johan Guldmyr Date: Wed, 23 Nov 2016 10:56:11 +0200 Subject: [PATCH] use check_mode: no instead of always_run: yes role now requires ansible 2.2 --- meta/main.yml | 2 +- tasks/redhat.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index d43edda..45eafad 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -14,7 +14,7 @@ galaxy_info: # - Apache # - CC-BY license: MIT - min_ansible_version: 2.1 + min_ansible_version: 2.2 # # Below are all platforms currently available. Just uncomment # the ones that apply to your role. If you don't see your diff --git a/tasks/redhat.yml b/tasks/redhat.yml index 7cbe0c4..606264e 100644 --- a/tasks/redhat.yml +++ b/tasks/redhat.yml @@ -41,7 +41,7 @@ register: reg_inventory changed_when: False delegate_to: localhost - always_run: True + check_mode: no become: false - name: store the list of hosts as json in a variable called hosts_file_my_inventory