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