Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
fa647094
Commit
fa647094
authored
May 14, 2020
by
julian.gethmann
Committed by
root
May 14, 2020
Browse files
change remount configuration
parent
23c04eda
Changes
1
Show whitespace changes
Inline
Side-by-side
roles/lasarchiv/tasks/nfs.yml
View file @
fa647094
...
...
@@ -20,14 +20,33 @@
become
:
yes
when
:
ansible_distribution == 'CentOS'
-
name
:
mount
lasarchiv1
-
name
:
add
lasarchiv1
to fstab
mount
:
name
:
"
/mnt/las-archiv1"
src
:
"
{{
nfs_server
}}:/las-archiv1"
fstype
:
nfs4
opts
:
"
soft,timeo=14,intr,nosuid"
state
:
"
{{
item
}}
"
state
:
"
present
"
become
:
yes
when
:
(ansible_default_ipv4.address | ipv4('129.13.238.64/26')) or (ansible_default_ipv6.address | ipv6('2a00:1398:4:8200::/64'))
with_items
:
-
present
register
:
fstab
-
name
:
check if mount exist
stat
:
path
:
"
/mnt/las-archiv1"
register
:
lasarchiv1
ignore_errors
:
True
-
name
:
mount lasarchiv1
mount
:
name
:
"
/mnt/las-archiv1"
src
:
"
{{
nfs_server
}}:/las-archiv1"
fstype
:
nfs4
opts
:
"
soft,timeo=14,intr,nosuid"
state
:
"
present"
become
:
yes
when
:
>
((ansible_default_ipv4.address | ipv4('129.13.238.64/26')) or (ansible_default_ipv6.address | ipv6('2a00:1398:4:8200::/64'))) and
((fstab.changed) and (lasarchiv1.stat.isdir is defined and lasarchiv1.stat.isdir) or ("'Input/output error' in lasarchiv1.stderr"))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment