aboutsummaryrefslogblamecommitdiffstats
path: root/roles/nfsd/tasks/os_freebsd.yml
blob: 1bb7fa3a711f360cc5d5303d7278719bfb221401 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

   
                          
                             







                                                        
                                  
                          


                    
---

- name: edit daemons flags
  ansible.builtin.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
  ansible.builtin.service:
    name: rpcbind
    state: restarted
    enabled: true
remember that computers suck.