From 18536ee6aae2989eee3da86f558270e3fc474521 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Fri, 7 Apr 2017 11:12:02 +0200 Subject: [PATCH] Check mode pour remount --- tasks/remount-off.yml | 4 +--- tasks/remount-on.yml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tasks/remount-off.yml b/tasks/remount-off.yml index 2b3656e..6772884 100644 --- a/tasks/remount-off.yml +++ b/tasks/remount-off.yml @@ -16,9 +16,7 @@ register: mount changed_when: False failed_when: False - # Use this with Ansible 2.1+ - #when: not ansible_check_mod - always_run: yes + when: not ansible_check_mode with_items: "{{ partitions }}" - name: Remount /usr if it is a partition and it is not mounted in ro diff --git a/tasks/remount-on.yml b/tasks/remount-on.yml index ea7689e..ef1756a 100644 --- a/tasks/remount-on.yml +++ b/tasks/remount-on.yml @@ -17,9 +17,7 @@ register: mount changed_when: False failed_when: False - # Use this with Ansible 2.1+ - #when: not ansible_check_mod - always_run: yes + when: not ansible_check_mode with_items: "{{ partitions }}" - name: Remount /usr if it is a partition and it is not mounted in rw