diff --git a/roles/nfs/tasks/main.yml b/roles/nfs/tasks/main.yml index fa52932..bbed701 100644 --- a/roles/nfs/tasks/main.yml +++ b/roles/nfs/tasks/main.yml @@ -78,9 +78,8 @@ path: /etc/nfs.conf marker: '# {mark} nfsd' block: | - [nfsd] port=2049 - insertbefore: '^#\[nfsd\]' + insertafter: '^\[nfsd\]' notify: - restart nfs-server.service @@ -89,10 +88,9 @@ path: /etc/nfs.conf marker: '# {mark} statd' block: | - [statd] port=2050 outgoing-port=2051 - insertbefore: '^#\[statd\]' + insertafter: '^\[statd\]' notify: - restart nfs-server.service @@ -101,9 +99,8 @@ path: /etc/nfs.conf marker: '# {mark} mountd' block: | - [mountd] port=2052 - insertbefore: '^#\[mountd\]' + insertafter: '^\[mountd\]' notify: - restart nfs-server.service @@ -112,10 +109,9 @@ path: /etc/nfs.conf marker: '# {mark} lockd' block: | - [lockd] port=2053 udp-port=2053 - insertbefore: '^#\[lockd\]' + insertafter: '^\[lockd\]' notify: - restart nfs-server.service