From bee42c57d2e48c660b94b3a05df9833edc531ef0 Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Tue, 31 Oct 2017 15:17:18 +0100 Subject: [PATCH] postfix: mount usr in rw before copy spam.sh --- postfix/tasks/packmail.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/postfix/tasks/packmail.yml b/postfix/tasks/packmail.yml index d7c37611..69d41581 100644 --- a/postfix/tasks/packmail.yml +++ b/postfix/tasks/packmail.yml @@ -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