diff --git a/playbooks/install_software_win.yml b/playbooks/install_software_win.yml index 00cc381..b2e17b0 100644 --- a/playbooks/install_software_win.yml +++ b/playbooks/install_software_win.yml @@ -1,3 +1,19 @@ +--- +- name: Prepare target host + hosts: localhost + gather_facts: no + tasks: + - name: Add target host from survey + ansible.builtin.add_host: + name: "{{ target_ip }}" + groups: dynamic_windows + ansible_connection: winrm + ansible_port: "{{ winrm_port | default(5985) }}" + ansible_winrm_transport: "{{ winrm_transport | default('ntlm') }}" + ansible_winrm_server_cert_validation: ignore + ansible_user: "{{ win_user }}" + ansible_password: "{{ win_pass }}" + - name: Install Software from SMB hosts: dynamic_windows gather_facts: no