Variablize /etc/rc.conf. Enable FuseFS more properly.

This commit is contained in:
Hyperling 2021-07-13 21:10:47 -05:00
parent 67cea8ed34
commit cdaa408df9
3 changed files with 15 additions and 2 deletions

View File

@ -3,6 +3,7 @@
- name: General | Facts | System | Linux
set_fact:
rc_conf: /dev/null
lynis_install_dir: /usr/local/lynis
sudoers_install_dir: /etc/sudoers.d/
when: ansible_system == "Linux"
@ -10,6 +11,7 @@
- name: General | Facts | System | FreeBSD
set_fact:
rc_conf: /etc/rc.conf
lynis_install_dir: /usr/local/lynis
sudoers_install_dir: /usr/local/etc/sudoers.d/
when: ansible_system == "FreeBSD"

View File

@ -13,7 +13,17 @@
## SSHFS ##
- name: General | Software | Services | Enable SSHFS (FreeBSD)
- name: General | Software | Services | Enable FuseFS (FreeBSD rc.conf)
lineinfile:
path: "{{ rc_conf }}"
regexp: 'fusefs_enable='
line: 'fusefs_enable="YES" # MANAGED BY ANSIBLE'
state: present
create: yes
backup: yes
when: ansible_system == "FreeBSD"
- name: General | Software | Services | Enable SSHFS (FreeBSD service)
service:
name: fusefs
pattern: fusefs

View File

@ -21,13 +21,14 @@
- name: Workstation | FreeBSD | GUI | Create rc.conf Entries
blockinfile:
path: /etc/rc.conf
path: "{{ rc_conf }}"
marker: "# {mark} MANAGED BY ANSIBLE | GUI Components"
block: |
dbus_enable="YES"
hald_enable="YES"
gnome_enable="YES"
gdm_enable="YES"
create: yes
backup: yes
- name: Workstation | FreeBSD | GUI | Create proc fstab Entry