shell command with no change but register should always run
This commit is contained in:
parent
b85a9178e3
commit
8f871821dd
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue