Avoid checking rc if we're in dry-run mode
Currently running `ansible --check' against generated playbook fails because the "exec" won't be done, hence the registered resource won't get the "rc" entry. Change-Id: Ic8001d4fd8c489f10c565d05ae82060fa3fb6ce8 Closes-Bug: #1834409
This commit is contained in:
parent
96a527e40d
commit
2d4430bd71
@ -117,7 +117,9 @@ outputs:
|
||||
register: iscsi_service_enabled_result
|
||||
- name: Stop iscsi.service
|
||||
service: name=iscsi.service state=stopped enabled=no
|
||||
when: iscsi_service_enabled_result.rc == 0
|
||||
when:
|
||||
- iscsi_service_enabled_result is changed
|
||||
- iscsi_service_enabled_result.rc == 0
|
||||
upgrade_tasks: []
|
||||
post_upgrade_tasks:
|
||||
- when: step|int == 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user