Disable warnings for mount commands related to /usr read-only

This commit is contained in:
Jérémy Lecour 2017-06-12 14:29:10 +02:00 committed by Jérémy Lecour
parent cc92c124bf
commit 65f91f09b0
7 changed files with 16 additions and 0 deletions

View file

@ -11,3 +11,5 @@
- 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")
args:
warn: no

View file

@ -11,3 +11,5 @@
- 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")
args:
warn: no

View file

@ -41,6 +41,8 @@
- block:
- name: Remount /usr as writable
command: "mount -o remount,rw /usr"
args:
warn: no
- name: Move kibana optimize directory
shell: "mv /usr/share/kibana/optimize /var/lib/kibana/optimize && ln -s /var/lib/kibana/optimize /usr/share/kibana/optimize"
@ -50,4 +52,6 @@
- name: Remount /usr as read-only
command: "mount -o remount /usr"
args:
warn: no
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")

View file

@ -11,3 +11,5 @@
- 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")
args:
warn: no

View file

@ -11,3 +11,5 @@
- 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")
args:
warn: no

View file

@ -11,3 +11,5 @@
- 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")
args:
warn: no

View file

@ -11,3 +11,5 @@
- 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")
args:
warn: no