postfix: mount usr in rw before copy spam.sh

This commit is contained in:
Victor LABORIE 2017-10-31 15:17:18 +01:00
parent 1f70b14896
commit bee42c57d2
1 changed files with 16 additions and 0 deletions

View File

@ -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