Обновить playbooks/inform_win.yml

This commit is contained in:
2025-12-05 10:14:57 +00:00
parent 9cc00d4ae0
commit 94beea9c2e

View File

@@ -1,21 +0,0 @@
---
- name: Configure Windows PC
hosts: windows
gather_facts: yes
tasks:
- name: Проверка связи (Ping)
ansible.windows.win_ping:
- name: Узнать имя компьютера
ansible.windows.win_shell: hostname
register: host_out
- name: Показать имя
debug:
var: host_out.stdout_lines
# Пример: Создать папку на диске C
- name: Create directory
ansible.windows.win_file:
path: C:\Temp\FromSemaphore
state: directory