Commit 1a596ed9 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

add become

parent 839ecea8
Pipeline #42892 passed with stage
in 2 minutes and 24 seconds
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
- name: Mount NFS share_mounts - name: Mount NFS share_mounts
become: true become: true
mount: mount:
fstype: nfs4 fstype: nfs
name: "{{ item.path }}" name: "{{ item.path }}"
opts: "vers={{ nfs_version }},{{ item.opts | default(nfs_mount_opts) }}" opts: "vers={{ nfs_version }},{{ item.opts | default(nfs_mount_opts) }}"
src: "{{ item.location }}" src: "{{ item.location }}"
...@@ -17,3 +17,4 @@ ...@@ -17,3 +17,4 @@
state: "{{ item.state | default( 'mounted' ) }}" state: "{{ item.state | default( 'mounted' ) }}"
with_items: "{{ nfs_share_mounts }}" with_items: "{{ nfs_share_mounts }}"
loop: "{{ nfs_share_mounts }}" loop: "{{ nfs_share_mounts }}"
become: true
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment