From 745c45f88dd595967f520febf1b68e64bfef79df Mon Sep 17 00:00:00 2001 From: Ludovic Poujol Date: Wed, 11 Oct 2017 17:58:18 +0200 Subject: [PATCH] Fix remount_usr_rw/yml --- apache/tasks/remount_usr_rw.yml | 6 +++++- evocheck/tasks/remount_usr_rw.yml | 6 +++++- evolinux-base/tasks/remount_usr_rw.yml | 6 +++++- generate-ldif/tasks/remount_usr_rw.yml | 6 +++++- kibana/tasks/remount_usr_rw.yml | 6 +++++- mysql/tasks/remount_usr_rw.yml | 6 +++++- nagios-nrpe/tasks/remount_usr_rw.yml | 6 +++++- varnish/tasks/remount_usr_rw.yml | 6 +++++- webapps/evoadmin-web/tasks/remount_usr_rw.yml | 6 +++++- 9 files changed, 45 insertions(+), 9 deletions(-) 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