I need to disable ipv6 on the network interface config file. The interface
name is not the same for all environments. How I can achieve that ?
playbook :
----
- name: Disable ipv6 from interface
   hosts: groupone
   gather_facts: true
   ansible.builtin.replace:
       path: /etc/sysconfig/network-scripts/ifcfg-{{ item }}
       regexp: 'IPV6'
       replace: '#IPV6'
   loop: "{{ ansible_default_ipv4.interface }}"
#Wantlist=True
error msg: Invalide data pass to loop.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAHOFgkSMd8UFRs52BuSn06qEZxSSSHdAMNZNs%3DO4Ypt%2BcWA%3Dww%40mail.gmail.com.

Reply via email to