ansible-roles/apache/tasks/remount_usr_rw.yml

13 lines
282 B
YAML

---
- name: update ansible_mounts facts
setup:
filter: ansible_mounts
- 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 }}"