Skip to content

Commit 5b72cd6

Browse files
author
Nicholas Silva
committed
Merge pull request #18 from onnimonni/patch-2
Fixed problems with /etc/exports lineinfile ansible directive
2 parents 1acad32 + 8b8db9e commit 5b72cd6

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

ansible/mac.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,11 @@
5050
become_method: sudo
5151

5252
- name: Add NFS share to /etc/exports
53-
lineinfile:
53+
blockinfile:
5454
dest: /etc/exports
55-
line: "{{ item }}"
5655
create: yes
57-
with_items:
58-
- '## Begin Dash Developer Environment ##'
59-
- '\"/Users\" 192.168.99.100 -alldirs -mapall=0:80'
60-
- '## End Dash Developer Environment ##'
56+
marker: "## {mark} Dash Developer Environment - ANSIBLE MANAGED BLOCK ##"
57+
content: '/Users 192.168.99.100 -alldirs -mapall=0:80'
6158
become: yes
6259
become_method: sudo
6360
register: exports

0 commit comments

Comments
 (0)