aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nfsd/tasks/os_freebsd.yml
blob: 2a8a8cd0504371e55f2f38b074c50d03b93a678e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- name: edit daemons flags
  lineinfile:
    path: /etc/rc.conf
    regexp: "^{{ item[0] }}="
    line: "{{ item[0] }}=\"{{ item[1] }}\""
  loop:
    - ["nfs_server_flags", "-tun {{ nfsd_nb_process }}"]
    - ["rpcbind_enable=", "YES"]
    - ["mountd_flags", "-r"]

- name: enable and restart rpcbind
  service:
    name: rpcbind
    state: restarted
    enabled: true
remember that computers suck.