diff options
author | Jordan Borean <jborean93@gmail.com> | 2019-07-26 06:45:00 +1000 |
---|---|---|
committer | Alicia Cozine <879121+acozine@users.noreply.github.com> | 2019-07-25 15:45:00 -0500 |
commit | cf817e44369e490a9ffc216dd0f9a6b3fa37ade9 (patch) | |
tree | 819359db1e4504d00276284505bac0dcb4fa5d3e | |
parent | 8d66a9979a5e4c56eb9302d9377cf11fe826bd77 (diff) | |
download | ansible-cf817e44369e490a9ffc216dd0f9a6b3fa37ade9.tar.gz |
psexec - update example for for delegation example (#59475) (#59481)
(cherry picked from commit 3581e63ca8bbb390f68cf5d3a45b195db1e83a7f)
-rw-r--r-- | lib/ansible/modules/commands/psexec.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/commands/psexec.py b/lib/ansible/modules/commands/psexec.py index 4a534c63a8..d2e1b47010 100644 --- a/lib/ansible/modules/commands/psexec.py +++ b/lib/ansible/modules/commands/psexec.py @@ -276,7 +276,7 @@ EXAMPLES = r''' - name: Download and run ConfigureRemotingForAnsible.ps1 to setup WinRM psexec: - hostname: '{{ ansible_host }}' + hostname: '{{ hostvars[inventory_hostname]["ansible_host"] | default(inventory_hostname) }}' connection_username: '{{ ansible_user }}' connection_password: '{{ ansible_password }}' encrypt: yes |