From 7c8fe270b4ec56b1ca62478b3c1016936b95fff3 Mon Sep 17 00:00:00 2001 From: Y Date: Mon, 20 May 2019 19:31:54 +0200 Subject: [PATCH] nfs: sections are now already commented-out --- roles/nfs/tasks/main.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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