Start moving back to blocks, easier to manage comments.

This commit is contained in:
2021-02-03 08:03:12 -06:00
parent 1a4a176933
commit de1c43e7d9
2 changed files with 6 additions and 14 deletions

View File

@ -2,23 +2,15 @@
# Enable and disable services.
- name: General | Software | Services | Create SSHFS rc.conf Entry (FreeBSD)
lineinfile:
blockinfile:
path: /etc/rc.conf
regexp: '^fusefs_enable='
line: fusefs_enable="YES"
block: |
fusefs_enable="YES"
marker: "# {mark} MANAGED BY ANSIBLE | SSHFS"
state: present
backup: yes
when: ansible_system == "FreeBSD"
- name: General | Software | Services | Create SSHFS rc.conf Comment (FreeBSD)
lineinfile:
path: /etc/fstab
regexp: '^# MANAGED BY ANSIBLE | SSHFS'
line: '# MANAGED BY ANSIBLE | SSHFS'
state: present
insertbefore: '^fusefs_enable='
when: ansible_system == "FreeBSD"
- name: General | Software | Services | Load SSHFS (FreeBSD)
shell: kldload fusefs
args: