Variablize /etc/rc.conf. Enable FuseFS more properly.
This commit is contained in:
parent
67cea8ed34
commit
cdaa408df9
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user