Use the /etc/rc.conf file

This commit is contained in:
Anthony Rose 2023-09-24 21:17:03 +01:00
parent 6e41d446b7
commit ba7c17e25c

View file

@ -16,31 +16,31 @@
- name: Enable IPv6 privacy
become: true
ansible.builtin.lineinfile:
path: /etc/rc.conf.d/ansible-workstation
path: /etc/rc.conf
regexp: '^ipv6_privacy=.*'
line: 'ipv6_privacy="YES"'
create: yes
- name: Set wlan0 arguments
become: true
ansible.builtin.lineinfile:
path: /etc/rc.conf.d/ansible-workstation
path: /etc/rc.conf
regexp: '^create_args_wlan0=.*'
line: 'create_args_wlan0="country GB"'
- name: Enable WPA/DHCP for wlan0
become: true
ansible.builtin.lineinfile:
path: /etc/rc.conf.d/ansible-workstation
path: /etc/rc.conf
regexp: '^ifconfig_wlan0=.*'
line: 'ifconfig_wlan0="WPA SYNCDHCP"'
- name: Enable IPv6 for wlan0
become: true
ansible.builtin.lineinfile:
path: /etc/rc.conf.d/ansible-workstation
path: /etc/rc.conf
regexp: '^ifconfig_wlan0_ipv6=.*'
line: 'ifconfig_wlan0_ipv6="inet6 accept_rtadv"'
- name: Clear /tmp at boot
become: true
ansible.builtin.lineinfile:
path: /etc/rc.conf.d/ansible-workstation
path: /etc/rc.conf
regexp: '^clear_tmp_enable=.*'
line: 'clear_tmp_enable="YES"'