ansible-roles/apache/tasks/remount_usr_rw.yml

13 lines
282 B
YAML
Raw Normal View History

2017-10-07 11:55:02 +02:00
---
2017-10-31 15:28:42 +01:00
- name: update ansible_mounts facts
setup:
filter: ansible_mounts
2017-10-07 11:55:02 +02:00
2017-10-31 15:28:42 +01:00
- name: mount /usr in rw
command: mount -o remount,rw /usr
2017-10-07 11:55:02 +02:00
args:
warn: no
2017-10-31 15:28:42 +01:00
changed_when: false
when: item.mount == '/usr' and item.options | match(".*ro.*")
with_items: "{{ ansible_mounts }}"