postfix: mount usr in rw before copy spam.sh
This commit is contained in:
parent
1f70b14896
commit
bee42c57d2
|
@ -87,6 +87,22 @@
|
|||
tags:
|
||||
- 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
|
||||
copy:
|
||||
src: spam.sh
|
||||
|
|
Loading…
Reference in New Issue