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 @@
- name: Mount NFS share_mounts
become: true
mount:
fstype: nfs4
fstype: nfs
name: "{{ item.path }}"
opts: "vers={{ nfs_version }},{{ item.opts | default(nfs_mount_opts) }}"
src: "{{ item.location }}"
......@@ -17,3 +17,4 @@
state: "{{ item.state | default( 'mounted' ) }}"
with_items: "{{ nfs_share_mounts }}"
loop: "{{ nfs_share_mounts }}"
become: true
Markdown is supported
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