Skip to content
Snippets Groups Projects
Commit 3d06c3e6 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

feat: respect state for NFS shares in order to be able to add or remove them in the same run

parent 4665e2a6
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
state: directory state: directory
- name: NFS-Shares für Logging mounten (/var/log/rossanity/) - name: NFS-Shares für Logging mounten (/var/log/rossanity/)
mount: ansible.posix.mount:
name: "{{ vault_log_nfs_mounts.log.mountpoint }}{{ ansible_hostname }}/" name: "{{ vault_log_nfs_mounts.log.mountpoint }}{{ ansible_hostname }}/"
src: "{{ vault_log_nfs_mounts.log.share }}{{ ansible_hostname }}/" src: "{{ vault_log_nfs_mounts.log.share }}{{ ansible_hostname }}/"
state: mounted state: mounted
...@@ -32,10 +32,10 @@ ...@@ -32,10 +32,10 @@
### PERMANENT STORAGE MOUNTEN ### ### PERMANENT STORAGE MOUNTEN ###
- name: NFS-Shares für Permanent Storage mounten - name: NFS-Shares für Permanent Storage mounten
mount: ansible.posix.mount:
name: "{{ item.mountpoint }}" name: "{{ item.mountpoint }}"
src: "{{ item.share }}" src: "{{ item.share }}"
state: mounted state: "{{ item.state | default('mounted') }}"
fstype: "nfs" fstype: "nfs"
opts: "ro,{{ item.opts | default('ro,defaults,nodev,nosuid,rsize=8192,wsize=8192,vers=3') }}" opts: "ro,{{ item.opts | default('ro,defaults,nodev,nosuid,rsize=8192,wsize=8192,vers=3') }}"
loop: "{{ vault_permanent_nfs_mounts }}" loop: "{{ vault_permanent_nfs_mounts }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment