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