New stuffs again

This commit is contained in:
2025-07-08 10:50:08 -04:00
parent 7502dbbd84
commit 49b98451a3
16 changed files with 548 additions and 31 deletions

23
ipv6_check.yml Normal file
View File

@ -0,0 +1,23 @@
---
- name: IPv6 Check
hosts: ipv6
gather_facts: true
tasks:
- name: Check host
ansible.builtin.debug:
var: ansible_hostname
- name: Check for IPv6 configuration
ansible.builtin.shell:
cmd: grep -i ipv6 /etc/sysconfig/network-scripts/ifcfg-*
failed_when: false
changed_when: false
register: ipv6_interfaces
- name: Debug ipv6_interfaces
ansible.builtin.debug:
var: ipv6_interfaces
when:
- ipv6_interfaces['stdout_lines'] is defined
- ipv6_interfaces['stdout_lines'] | length > 0