Archive Legacy Setup And Add Ansible Control Plane

This commit is contained in:
Dmitry
2026-07-08 12:47:37 +03:00
parent 841d56380b
commit 4bafa7d09e
203 changed files with 1663 additions and 11 deletions
+15
View File
@@ -0,0 +1,15 @@
- name: Check HomeLab Ansible connectivity
hosts: servers
gather_facts: true
become: false
tasks:
- name: Ping host
ansible.builtin.ping:
- name: Check expected LAN IP when defined
ansible.builtin.assert:
that:
- expected_lan_ip in ansible_facts.all_ipv4_addresses
fail_msg: "{{ inventory_hostname }} must have {{ expected_lan_ip }}; found: {{ ansible_facts.all_ipv4_addresses | join(', ') }}"
success_msg: "{{ inventory_hostname }} has {{ expected_lan_ip }}"
when: expected_lan_ip is defined