Verified Commit 25758b04 authored by Marco Marinello's avatar Marco Marinello
Browse files

Use template instead

parent 8ffb67aa
Pipeline #160 passed with stage
in 42 seconds
......@@ -18,21 +18,14 @@
---
- name: Create file for sysctl rule to disable IPv6 (if required)
file:
path: /etc/sysctl.d/99-fuss-disable-ipv6.conf
state: file
template:
src: 99-fuss-disable-ipv6.conf
dest: /etc/sysctl.d/99-fuss-disable-ipv6.conf
owner: root
group: root
mode: '0644'
when: disable_ipv6 is defined and disable_ipv6
- name: Add a line in sysctl file to disable IPv6 (if required)
lineinfile:
path: /etc/sysctl.d/99-fuss-disable-ipv6.conf
line: 'net.ipv6.conf.all.disable_ipv6 = 1'
state: present
when: disable_ipv6 is defined and disable_ipv6
- name: Clean package list
debug:
with_lines:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment