diff --git a/apache/tasks/remount_usr_rw.yml b/apache/tasks/remount_usr_rw.yml index 8c51aee2..60162607 100644 --- a/apache/tasks/remount_usr_rw.yml +++ b/apache/tasks/remount_usr_rw.yml @@ -10,6 +10,10 @@ - name: Remount /usr if it is a partition and it is not mounted in rw command: "mount -o remount,rw /usr" - when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw") + when: + - not ansible_check_mode + - mount.rc == 0 + - not mount.stdout_lines.0 | search("rw") + check_mode: yes args: warn: no diff --git a/evocheck/tasks/remount_usr_rw.yml b/evocheck/tasks/remount_usr_rw.yml index 8c51aee2..60162607 100644 --- a/evocheck/tasks/remount_usr_rw.yml +++ b/evocheck/tasks/remount_usr_rw.yml @@ -10,6 +10,10 @@ - name: Remount /usr if it is a partition and it is not mounted in rw command: "mount -o remount,rw /usr" - when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw") + when: + - not ansible_check_mode + - mount.rc == 0 + - not mount.stdout_lines.0 | search("rw") + check_mode: yes args: warn: no diff --git a/evolinux-base/tasks/remount_usr_rw.yml b/evolinux-base/tasks/remount_usr_rw.yml index 8c51aee2..60162607 100644 --- a/evolinux-base/tasks/remount_usr_rw.yml +++ b/evolinux-base/tasks/remount_usr_rw.yml @@ -10,6 +10,10 @@ - name: Remount /usr if it is a partition and it is not mounted in rw command: "mount -o remount,rw /usr" - when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw") + when: + - not ansible_check_mode + - mount.rc == 0 + - not mount.stdout_lines.0 | search("rw") + check_mode: yes args: warn: no diff --git a/generate-ldif/tasks/remount_usr_rw.yml b/generate-ldif/tasks/remount_usr_rw.yml index 8c51aee2..60162607 100644 --- a/generate-ldif/tasks/remount_usr_rw.yml +++ b/generate-ldif/tasks/remount_usr_rw.yml @@ -10,6 +10,10 @@ - name: Remount /usr if it is a partition and it is not mounted in rw command: "mount -o remount,rw /usr" - when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw") + when: + - not ansible_check_mode + - mount.rc == 0 + - not mount.stdout_lines.0 | search("rw") + check_mode: yes args: warn: no diff --git a/kibana/tasks/remount_usr_rw.yml b/kibana/tasks/remount_usr_rw.yml index 8c51aee2..60162607 100644 --- a/kibana/tasks/remount_usr_rw.yml +++ b/kibana/tasks/remount_usr_rw.yml @@ -10,6 +10,10 @@ - name: Remount /usr if it is a partition and it is not mounted in rw command: "mount -o remount,rw /usr" - when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw") + when: + - not ansible_check_mode + - mount.rc == 0 + - not mount.stdout_lines.0 | search("rw") + check_mode: yes args: warn: no diff --git a/mysql/tasks/remount_usr_rw.yml b/mysql/tasks/remount_usr_rw.yml index 8c51aee2..60162607 100644 --- a/mysql/tasks/remount_usr_rw.yml +++ b/mysql/tasks/remount_usr_rw.yml @@ -10,6 +10,10 @@ - name: Remount /usr if it is a partition and it is not mounted in rw command: "mount -o remount,rw /usr" - when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw") + when: + - not ansible_check_mode + - mount.rc == 0 + - not mount.stdout_lines.0 | search("rw") + check_mode: yes args: warn: no diff --git a/nagios-nrpe/tasks/remount_usr_rw.yml b/nagios-nrpe/tasks/remount_usr_rw.yml index 8c51aee2..60162607 100644 --- a/nagios-nrpe/tasks/remount_usr_rw.yml +++ b/nagios-nrpe/tasks/remount_usr_rw.yml @@ -10,6 +10,10 @@ - name: Remount /usr if it is a partition and it is not mounted in rw command: "mount -o remount,rw /usr" - when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw") + when: + - not ansible_check_mode + - mount.rc == 0 + - not mount.stdout_lines.0 | search("rw") + check_mode: yes args: warn: no diff --git a/varnish/tasks/remount_usr_rw.yml b/varnish/tasks/remount_usr_rw.yml index 8c51aee2..60162607 100644 --- a/varnish/tasks/remount_usr_rw.yml +++ b/varnish/tasks/remount_usr_rw.yml @@ -10,6 +10,10 @@ - name: Remount /usr if it is a partition and it is not mounted in rw command: "mount -o remount,rw /usr" - when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw") + when: + - not ansible_check_mode + - mount.rc == 0 + - not mount.stdout_lines.0 | search("rw") + check_mode: yes args: warn: no diff --git a/webapps/evoadmin-web/tasks/remount_usr_rw.yml b/webapps/evoadmin-web/tasks/remount_usr_rw.yml index 8c51aee2..60162607 100644 --- a/webapps/evoadmin-web/tasks/remount_usr_rw.yml +++ b/webapps/evoadmin-web/tasks/remount_usr_rw.yml @@ -10,6 +10,10 @@ - name: Remount /usr if it is a partition and it is not mounted in rw command: "mount -o remount,rw /usr" - when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw") + when: + - not ansible_check_mode + - mount.rc == 0 + - not mount.stdout_lines.0 | search("rw") + check_mode: yes args: warn: no