Service works great on FreeBSD! Edits rc.conf!
This commit is contained in:
parent
78370d0e93
commit
a42c8b9088
@ -1,22 +1,14 @@
|
|||||||
---
|
---
|
||||||
# Enable and disable services.
|
# Enable and disable services.
|
||||||
|
|
||||||
## Fake SSHFS ##
|
## SSHFS ##
|
||||||
|
|
||||||
- name: General | Software | Services | Create SSHFS rc.conf Entry (FreeBSD)
|
- name: General | Software | Services | Enable SSHD (Linux?)
|
||||||
blockinfile:
|
service:
|
||||||
path: /etc/rc.conf
|
name: fusefs
|
||||||
block: |
|
pattern: fusefs
|
||||||
fusefs_enable="YES"
|
state: started
|
||||||
marker: "# {mark} MANAGED BY ANSIBLE | SSHFS"
|
enabled: yes
|
||||||
state: present
|
|
||||||
backup: yes
|
|
||||||
when: ansible_system == "FreeBSD"
|
|
||||||
|
|
||||||
- name: General | Software | Services | Load SSHFS (FreeBSD)
|
|
||||||
shell: kldload fusefs
|
|
||||||
args:
|
|
||||||
warn: false
|
|
||||||
when: ansible_system == "FreeBSD"
|
when: ansible_system == "FreeBSD"
|
||||||
|
|
||||||
|
|
||||||
@ -39,16 +31,6 @@
|
|||||||
|
|
||||||
## SSHD ##
|
## SSHD ##
|
||||||
|
|
||||||
#- name: General | Software | Services | Create SSHFS rc.conf Entry (FreeBSD)
|
|
||||||
# lineinfile:
|
|
||||||
# path: /etc/rc.conf
|
|
||||||
# regexp: '^sshd_enable='
|
|
||||||
# line: 'sshd_enable="YES" # MANAGED BY ANSIBLE'
|
|
||||||
# state: present
|
|
||||||
# create: yes
|
|
||||||
# backup: yes
|
|
||||||
# when: ansible_system == "FreeBSD"
|
|
||||||
|
|
||||||
- name: General | Software | Services | Create SSHFS rc.conf Entry (FreeBSD)
|
- name: General | Software | Services | Create SSHFS rc.conf Entry (FreeBSD)
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ sshd_config }}"
|
path: "{{ sshd_config }}"
|
||||||
@ -74,5 +56,5 @@
|
|||||||
service:
|
service:
|
||||||
name: "{{ sshd }}"
|
name: "{{ sshd }}"
|
||||||
pattern: "{{ sshd_pattern }}"
|
pattern: "{{ sshd_pattern }}"
|
||||||
state: started
|
state: reloaded
|
||||||
enabled: yes
|
enabled: yes
|
Loading…
x
Reference in New Issue
Block a user