Add copying of rc.conf.

This commit is contained in:
Tom Alexander 2022-10-14 01:55:15 -04:00
parent dcba0af7c1
commit c34aab16af
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 30 additions and 8 deletions

View File

@ -8,3 +8,4 @@ pflog_conf:
- name: 0
dev: pflog0
network_rc: "homeserver_network.conf"
rc_conf: "homeserver_rc.conf"

View File

@ -0,0 +1,15 @@
clear_tmp_enable="YES"
syslogd_flags="-ss"
sendmail_enable="NONE"
hostname="computer"
# wlans_ath0="wlan0"
wlans_run0="wlan0"
ifconfig_wlan0="WPA DHCP"
ifconfig_wlan0_ipv6="inet6 accept_rtadv"
local_unbound_enable="YES"
sshd_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
zfs_enable="YES"

View File

@ -68,11 +68,17 @@
# mode: 0644
# when: loader_conf is defined
# - name: Install rc.conf
# copy:
# src: "{{rc_conf}}"
# dest: /etc/rc.conf
# mode: 0644
# owner: root
# group: wheel
# when: rc_conf is defined
- name: Install rc.conf
copy:
src: "{{rc_conf}}"
dest: /etc/rc.conf
mode: 0644
owner: root
group: wheel
when: rc_conf is defined
- name: Delete rc.conf
file:
path: /etc/rc.conf
start: absent
when: rc_conf is not defined