Disable warnings for mount commands related to /usr read-only
This commit is contained in:
parent
cc92c124bf
commit
65f91f09b0
|
@ -11,3 +11,5 @@
|
||||||
- name: Remount /usr if it is a partition and it is not mounted in rw
|
- name: Remount /usr if it is a partition and it is not mounted in rw
|
||||||
command: "mount -o remount,rw /usr"
|
command: "mount -o remount,rw /usr"
|
||||||
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
|
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
|
||||||
|
args:
|
||||||
|
warn: no
|
||||||
|
|
|
@ -11,3 +11,5 @@
|
||||||
- name: Remount /usr if it is a partition and it is not mounted in rw
|
- name: Remount /usr if it is a partition and it is not mounted in rw
|
||||||
command: "mount -o remount,rw /usr"
|
command: "mount -o remount,rw /usr"
|
||||||
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
|
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
|
||||||
|
args:
|
||||||
|
warn: no
|
||||||
|
|
|
@ -41,6 +41,8 @@
|
||||||
- block:
|
- block:
|
||||||
- name: Remount /usr as writable
|
- name: Remount /usr as writable
|
||||||
command: "mount -o remount,rw /usr"
|
command: "mount -o remount,rw /usr"
|
||||||
|
args:
|
||||||
|
warn: no
|
||||||
|
|
||||||
- name: Move kibana optimize directory
|
- 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"
|
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
|
- name: Remount /usr as read-only
|
||||||
command: "mount -o remount /usr"
|
command: "mount -o remount /usr"
|
||||||
|
args:
|
||||||
|
warn: no
|
||||||
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
|
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
|
||||||
|
|
|
@ -11,3 +11,5 @@
|
||||||
- name: Remount /usr if it is a partition and it is not mounted in rw
|
- name: Remount /usr if it is a partition and it is not mounted in rw
|
||||||
command: "mount -o remount,rw /usr"
|
command: "mount -o remount,rw /usr"
|
||||||
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
|
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
|
||||||
|
args:
|
||||||
|
warn: no
|
||||||
|
|
|
@ -11,3 +11,5 @@
|
||||||
- name: Remount /usr if it is a partition and it is not mounted in rw
|
- name: Remount /usr if it is a partition and it is not mounted in rw
|
||||||
command: "mount -o remount,rw /usr"
|
command: "mount -o remount,rw /usr"
|
||||||
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
|
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
|
||||||
|
args:
|
||||||
|
warn: no
|
||||||
|
|
|
@ -11,3 +11,5 @@
|
||||||
- name: Remount /usr if it is a partition and it is not mounted in rw
|
- name: Remount /usr if it is a partition and it is not mounted in rw
|
||||||
command: "mount -o remount,rw /usr"
|
command: "mount -o remount,rw /usr"
|
||||||
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
|
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
|
||||||
|
args:
|
||||||
|
warn: no
|
||||||
|
|
|
@ -11,3 +11,5 @@
|
||||||
- name: Remount /usr if it is a partition and it is not mounted in rw
|
- name: Remount /usr if it is a partition and it is not mounted in rw
|
||||||
command: "mount -o remount,rw /usr"
|
command: "mount -o remount,rw /usr"
|
||||||
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
|
when: mount.rc == 0 and not mount.stdout_lines.0 | search("rw")
|
||||||
|
args:
|
||||||
|
warn: no
|
||||||
|
|
Loading…
Reference in a new issue