файлы для curl

This commit is contained in:
4bobus
2025-06-21 19:05:41 +05:00
parent 4bb77625e2
commit 94373cc095
7 changed files with 292 additions and 0 deletions

16
files/inventory.yml Normal file
View File

@@ -0,0 +1,16 @@
---
- name: inventory of machines HQ-SRV and HQ-CLI
hosts:
- HQ-SRV
- HQ-CLI
gather_facts: yes
tasks:
- name: create a report with workplace information
delegate_to: localhost
copy:
dest: "/etc/ansible/PC_INFO/{{ ansible_hostname }}.yml"
content: |
---
name pc: "{{ ansible_hostname }}"
ip-address pc: "{{ ansible_default_ipv4.address }}"