shell command with no change but register should always run

This commit is contained in:
Jérémy Lecour 2017-02-15 16:22:33 +01:00 committed by Jérémy Lecour
parent b85a9178e3
commit 8f871821dd
2 changed files with 10 additions and 4 deletions

View file

@ -16,6 +16,9 @@
register: mount
changed_when: False
failed_when: False
# Use this with Ansible 2.1+
#when: not ansible_check_mod
always_run: yes
with_items: "{{ partitions }}"
- name: Remount /usr if it is a partition and it is not mounted in ro

View file

@ -17,6 +17,9 @@
register: mount
changed_when: False
failed_when: False
# Use this with Ansible 2.1+
#when: not ansible_check_mod
always_run: yes
with_items: "{{ partitions }}"
- name: Remount /usr if it is a partition and it is not mounted in rw