From e4a3828431c3d6aa5491fe5abc06f189aa7236a2 Mon Sep 17 00:00:00 2001 From: ogrechko Date: Fri, 2 Oct 2026 12:10:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20playbooks/install=5Fsoftware=5Fwin.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playbooks/install_software_win.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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