spamassasin: mount usr in rw before copy sa-update.sh

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

View File

@ -27,6 +27,22 @@
tags:
- spamassassin
- name: update ansible_mounts facts
setup:
filter: ansible_mounts
tags:
- spamassassin
- 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:
- spamassassin
- name: copy sa-update.sh script
copy:
src: sa-update.sh