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

View file

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