postfix: mount usr in rw before copy spam.sh
This commit is contained in:
parent
1f70b14896
commit
bee42c57d2
|
@ -87,6 +87,22 @@
|
||||||
tags:
|
tags:
|
||||||
- postfix
|
- postfix
|
||||||
|
|
||||||
|
- name: update ansible_mounts facts
|
||||||
|
setup:
|
||||||
|
filter: ansible_mounts
|
||||||
|
tags:
|
||||||
|
- postfix
|
||||||
|
|
||||||
|
- name: mount /usr in rw
|
||||||
|
command: mount -o remount,rw /usr
|
||||||
|
args:
|
||||||
|
warn: no
|
||||||
|
changed_when: false
|
||||||
|
when: item.mount == '/usr' and item.options | match(".*ro.*")
|
||||||
|
with_items: "{{ ansible_mounts }}"
|
||||||
|
tags:
|
||||||
|
- postfix
|
||||||
|
|
||||||
- name: copy spam.sh script
|
- name: copy spam.sh script
|
||||||
copy:
|
copy:
|
||||||
src: spam.sh
|
src: spam.sh
|
||||||
|
|
Loading…
Reference in a new issue