--- - 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 }}"