项目作者: dmotte

项目描述 :
Ansible role to disable IPv6 completely on Debian/Ubuntu hosts
高级语言:
项目地址: git://github.com/dmotte/ansible-role-disable-ipv6.git
创建时间: 2021-04-11T18:43:13Z
项目社区:https://github.com/dmotte/ansible-role-disable-ipv6

开源协议:MIT License

下载


ansible-role-disable-ipv6

GitHub latest release
Ansible Galaxy

:warning: Warning: this project is no longer maintained :warning:

I decided to convert the Ansible code to Bash for simplicity.


Ansible role to disable IPv6 completely on Debian/Ubuntu hosts.

Usage

  1. Install this role using the ansible-galaxy CLI tool
  2. You can then include it into the tasks section of your Ansible Playbook. See test/playbook.yml for an example of how to do that. Remember to replace the role name with dmotte.disable_ipv6.

Note: this role must be run as root (ansible_become: true), because it needs to be able to use the sysctl command.

Role variables

See defaults/main.yml.

Development

If you want to contribute to this project, you can use the test/playbook.yml file to test the role while editing it.

Place your inventory file (e.g. hosts.yml) inside the test folder.

Edit the vars section of the test/playbook.yml file to match your scenario.

You can then execute the playbook against your host:

  1. cd test/
  2. ansible-playbook -i hosts.yml playbook.yml