Don't remove fstab entry if test double mounts.
This commit is contained in:
parent
60ce1e2f93
commit
bdb161376b
@ -6,11 +6,13 @@
|
|||||||
path: "/mnt/test"
|
path: "/mnt/test"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
when: not leet_drive_details.stat.exists
|
||||||
|
|
||||||
- name: General | Account Management | Mounts | Test SSHFS
|
- name: General | Account Management | Mounts | Test SSHFS
|
||||||
shell: "sshfs {{ leet_ssh }}: /mnt/test -o allow_other"
|
shell: "sshfs {{ leet_ssh }}: /mnt/test -o allow_other"
|
||||||
register: sshfs_test
|
register: sshfs_test
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
when: not leet_drive_details.stat.exists
|
||||||
|
|
||||||
|
|
||||||
- name: General | Account Management | Mounts | Create 1337 Folder
|
- name: General | Account Management | Mounts | Create 1337 Folder
|
||||||
@ -18,7 +20,6 @@
|
|||||||
path: "{{ leet_drive }}"
|
path: "{{ leet_drive }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
when: not sshfs_test.failed
|
|
||||||
|
|
||||||
|
|
||||||
#TODO Remove this
|
#TODO Remove this
|
||||||
@ -62,7 +63,8 @@
|
|||||||
marker: '# {mark} MANAGED BY ANSIBLE | 1337 Share'
|
marker: '# {mark} MANAGED BY ANSIBLE | 1337 Share'
|
||||||
state: present
|
state: present
|
||||||
backup: yes
|
backup: yes
|
||||||
when: ansible_system == "Linux" and not sshfs_test.failed
|
when: ansible_system == "Linux" and
|
||||||
|
(not sshfs_test.failed or leet_drive_details.stat.exists)
|
||||||
|
|
||||||
- name: General | Account Management | Mounts | Mount All (Linux)
|
- name: General | Account Management | Mounts | Mount All (Linux)
|
||||||
shell: mount -a
|
shell: mount -a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user