2023-04-14 10:31:09 +00:00
|
|
|
- hosts: custom
|
|
|
|
gather_facts: no
|
|
|
|
vars:
|
2023-06-15 10:33:05 +00:00
|
|
|
ansible_shell_type: sh
|
2023-04-14 10:31:09 +00:00
|
|
|
ansible_connection: local
|
|
|
|
|
|
|
|
tasks:
|
2023-06-15 10:33:05 +00:00
|
|
|
- name: Verify account (pyfreerdp)
|
|
|
|
rdp_ping:
|
2023-04-14 10:31:09 +00:00
|
|
|
login_host: "{{ jms_asset.address }}"
|
2023-10-13 08:21:20 +00:00
|
|
|
login_port: "{{ jms_asset.protocols | selectattr('name', 'equalto', 'rdp') | map(attribute='port') | first }}"
|
2023-04-14 10:31:09 +00:00
|
|
|
login_user: "{{ account.username }}"
|
|
|
|
login_password: "{{ account.secret }}"
|
2023-05-22 09:29:17 +00:00
|
|
|
login_secret_type: "{{ account.secret_type }}"
|
|
|
|
login_private_key_path: "{{ account.private_key_path }}"
|