dmotte.disable_ipv6
ansible-role-disable-ipv6
:warning: Warning: this project is no longer maintained :warning:
I have decided to change the Ansible code to Bash for simplicity.
This is an Ansible role that completely disables IPv6 on Debian/Ubuntu systems.
How to Use
- Install this role using the
ansible-galaxycommand-line tool. - You can add it to the
taskssection of your Ansible Playbook. Check outtest/playbook.ymlfor an example. Make sure to replace the role name withdmotte.disable_ipv6.
Important: You need to run this role as root (
ansible_become: true) because it uses thesysctlcommand.
Role Variables
See the file defaults/main.yml for the available variables.
Development
If you'd like to help improve this project, use the test/playbook.yml to test the role while you make changes.
Put your inventory file (like hosts.yml) in the test folder.
Update the vars section of the test/playbook.yml file to fit your needs.
Then you can run the playbook on your host with this command:
cd test/
ansible-playbook -i hosts.yml playbook.yml
