ipa[server,replica,client]: Do not try to execute tasks after the role test

The role test is executed in the ipa[server,replica,client] roles first.
These tests are usable in the Ansible test mode, but the folllowing steps
in the task list are not. Therefore the blocks following the tests are
limited to not being executed in test mode.
This commit is contained in:
Thomas Woerner
2019-03-26 14:22:26 +01:00
parent 82588026bf
commit 4557292743
3 changed files with 6 additions and 0 deletions

View File

@@ -295,6 +295,8 @@
nisdomain: "{{ ipaclient_nisdomain | default(omit)}}"
when: not ipaclient_no_nisdomain | bool
when: not ansible_check_mode
always:
- name: Cleanup leftover ccache
file:

View File

@@ -622,3 +622,5 @@
path: "/root/.ipa_cache"
state: absent
when: result_ipareplica_enable_ipa.changed
when: not ansible_check_mode

View File

@@ -388,3 +388,5 @@
{{ "--add-service=dns" if ipaserver_setup_dns | bool else "" }}
{{ "--add-service=ntp" if not ipaclient_no_ntp | bool else "" }}
when: ipaserver_setup_firewalld | bool
when: not ansible_check_mode