aboutsummaryrefslogblamecommitdiffstats
path: root/roles/nfsd/tasks/_freebsd.yml
blob: 2cae34ada81ad09fbb6261c0b8290200d85a1807 (plain) (tree)



















                                                        

# nfsd ~~ roles/nfsd/tasks/_freebsd.yml

---

- name: ensure daemons flag
  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: ensure rpcbind is enabled and restarted
  service:
    name: rpcbind
    state: restarted
    enabled: true
remember that computers suck.