debian 13
This commit is contained in:
parent
2baa2728c9
commit
fa5c7abdb7
@ -15,10 +15,19 @@
|
||||
src: sysstat_minutely.patch
|
||||
dest: /etc/cron.d/sysstat
|
||||
|
||||
- name: set sysctl conf file name
|
||||
set_fact:
|
||||
sysctlconf: /etc/sysctl.conf
|
||||
- name: set sysctl conf file name for Debian 13-99
|
||||
set_fact:
|
||||
sysctlconf: /etc/sysctl.d/disable_ipv6.conf
|
||||
when: (ansible_distribution == "Debian" and ansible_distribution_major_version|int() >= 13)
|
||||
|
||||
- name: disable IPv6 in sysctl.conf
|
||||
lineinfile:
|
||||
dest: /etc/sysctl.conf
|
||||
dest: "{{ sysctlconf }}"
|
||||
state: present
|
||||
create: yes
|
||||
regexp: "^{{ item.a }}"
|
||||
line: "{{ item.a }} = {{ item.v }}"
|
||||
with_items:
|
||||
@ -27,4 +36,5 @@
|
||||
- { a: "net.ipv6.conf.lo.disable_ipv6", v: 1 }
|
||||
when: "'ipv6' not in group_names"
|
||||
|
||||
|
||||
# vim: set tabstop=2 shiftwidth=2 expandtab smarttab:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user