Обновить playbooks/install_software_win.yml
This commit is contained in:
1 parent
3f9e3fea12
commit
e4a3828431
1 file changed
+16
@@ -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
|
- name: Install Software from SMB
|
||||||
hosts: dynamic_windows
|
hosts: dynamic_windows
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
|
|||||||
Reference in new issue
Block a user