Skip to content

Commit

Permalink
Merge pull request freeipa#312 from t-woerner/ansible_action_module_d…
Browse files Browse the repository at this point in the history
…iscovered_python

action_plugins/ipaclient_get_otp: Discovered python needed in task_vars
  • Loading branch information
varunmylaraiah authored Jul 1, 2020
2 parents 097a342 + 80aac15 commit ffa0c6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions roles/ipaclient/action_plugins/ipaclient_get_otp.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ def run(self, tmp=None, task_vars=None):
return result

data = self._execute_module(module_name='ipaclient_get_facts',
module_args=dict(), task_vars=None)
module_args=dict(), task_vars=task_vars)

try:
domain = data['ansible_facts']['ipa']['domain']
realm = data['ansible_facts']['ipa']['realm']
Expand Down Expand Up @@ -245,4 +246,3 @@ def run(self, tmp=None, task_vars=None):
finally:
# delete the local temp directory
shutil.rmtree(local_temp_dir, ignore_errors=True)
run_cmd(['/usr/bin/kdestroy', '-c', tmp_ccache])
1 change: 0 additions & 1 deletion roles/ipaclient/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@
"Password cannot be set on enrolled host" not
in result_ipaclient_get_otp.msg
delegate_to: "{{ result_ipaclient_test.servers[0] }}"
delegate_facts: yes
ignore_errors: yes

- name: Install - Report error for OTP generation
Expand Down

0 comments on commit ffa0c6e

Please sign in to comment.