Skip to content

Commit 6e6058d

Browse files
committed
don't write compute-init share into fstab for reliability -is unmounted once synced
1 parent 9322e0e commit 6e6058d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ansible/roles/compute_init/files/compute-init.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@
6464
mode: u=rX,g=rwX,o=
6565

6666
- name: Mount /mnt/cluster
67-
mount:
67+
ansible.posix.mount:
6868
path: /mnt/cluster
6969
src: "{{ server_node_ip }}:/exports/cluster"
7070
fstype: nfs
7171
opts: ro,sync
72-
state: mounted
72+
state: ephemeral # will be unmounted after sync, don't want it in fstab
7373
register: _mount_mnt_cluster
7474
ignore_errors: true
7575
# exits from playbook if this failed below, allowing ansible-init to

0 commit comments

Comments
 (0)