ansible role - debian_disable_ipv6
commit
1572d8669e
@ -0,0 +1,33 @@
|
||||
# Role Name
|
||||
|
||||
Выключает ipv6.
|
||||
|
||||
## Requirements
|
||||
|
||||
Отсутствуют
|
||||
|
||||
## Role Variables
|
||||
|
||||
Отсутствуют
|
||||
|
||||
## Dependencies
|
||||
|
||||
Отсутствуют
|
||||
|
||||
## Example Playbook
|
||||
|
||||
Пример:
|
||||
|
||||
```
|
||||
- hosts: servers
|
||||
roles:
|
||||
- debian_disable_ipv6
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
Отсутствует
|
||||
|
||||
## Author Information
|
||||
|
||||
БМС
|
||||
@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: set sysctl
|
||||
ansible.builtin.lineinfile:
|
||||
create: yes
|
||||
path: /etc/sysctl.conf
|
||||
line: "net.ipv6.conf.all.disable_ipv6 = 1"
|
||||
|
||||
- name: accept sysctl
|
||||
ansible.builtin.command: sysctl -p
|
||||
Loading…
Reference in New Issue