mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-05 14:24:48 +00:00
Merge pull request #312 from t-woerner/ansible_action_module_discovered_python
action_plugins/ipaclient_get_otp: Discovered python needed in task_vars
This commit is contained in:
@@ -164,7 +164,8 @@ class ActionModule(ActionBase):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
data = self._execute_module(module_name='ipaclient_get_facts',
|
data = self._execute_module(module_name='ipaclient_get_facts',
|
||||||
module_args=dict(), task_vars=None)
|
module_args=dict(), task_vars=task_vars)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
domain = data['ansible_facts']['ipa']['domain']
|
domain = data['ansible_facts']['ipa']['domain']
|
||||||
realm = data['ansible_facts']['ipa']['realm']
|
realm = data['ansible_facts']['ipa']['realm']
|
||||||
@@ -245,4 +246,3 @@ class ActionModule(ActionBase):
|
|||||||
finally:
|
finally:
|
||||||
# delete the local temp directory
|
# delete the local temp directory
|
||||||
shutil.rmtree(local_temp_dir, ignore_errors=True)
|
shutil.rmtree(local_temp_dir, ignore_errors=True)
|
||||||
run_cmd(['/usr/bin/kdestroy', '-c', tmp_ccache])
|
|
||||||
|
|||||||
@@ -134,7 +134,6 @@
|
|||||||
"Password cannot be set on enrolled host" not
|
"Password cannot be set on enrolled host" not
|
||||||
in result_ipaclient_get_otp.msg
|
in result_ipaclient_get_otp.msg
|
||||||
delegate_to: "{{ result_ipaclient_test.servers[0] }}"
|
delegate_to: "{{ result_ipaclient_test.servers[0] }}"
|
||||||
delegate_facts: yes
|
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: Install - Report error for OTP generation
|
- name: Install - Report error for OTP generation
|
||||||
|
|||||||
Reference in New Issue
Block a user