This commit is contained in:
parent
15bd836197
commit
a7b16cb3bc
@ -117,3 +117,5 @@ hosts_entries: []
|
||||
|
||||
# Custom host file snippets to be added
|
||||
hosts_file_snippets: []
|
||||
|
||||
system_ipV6_disable: true
|
||||
|
@ -12,3 +12,6 @@
|
||||
- name: Restart sshd
|
||||
service: name=sshd state=restarted
|
||||
become: yes
|
||||
|
||||
- name: restart_sysctl
|
||||
service: name=systemd-sysctl state=restarted
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
#- include_tasks: hostname.yml
|
||||
- include_tasks: hosts.yml
|
||||
- include_tasks: tasks.sysctl.yml
|
||||
- include_tasks: dhcpcd.yml
|
||||
- include_tasks: hostname.yml
|
||||
- include_tasks: locales.yml
|
||||
|
10
tasks/tasks.sysctl.yml
Normal file
10
tasks/tasks.sysctl.yml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: disable IPV6
|
||||
template:
|
||||
src: 40-ipv6.j2
|
||||
dest: /etc/sysctl.d/40-ipv6.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: restart_sysctl
|
||||
become: True
|
1
templates/40-ipv6.j2
Normal file
1
templates/40-ipv6.j2
Normal file
@ -0,0 +1 @@
|
||||
net.ipv6.conf.all.disable_ipv6 = {% if system_ipV6_disable %} 1 {% else %} 0 {% endif %}
|
Loading…
Reference in New Issue
Block a user