Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
ansible-shared
samba
Commits
cb93e8e5
Commit
cb93e8e5
authored
Oct 15, 2019
by
Robin Sonnabend
Browse files
Ensure /etc/lvm/archive does not overflow
parent
51b31c6f
Pipeline
#1437
passed with stage
in 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lvm-snapshots/tasks/main.yml
View file @
cb93e8e5
...
...
@@ -8,8 +8,6 @@
owner
:
root
group
:
root
mode
:
'
0755'
tags
:
-
lvm-snapshots
-
name
:
ensure our deploy key is present
copy
:
...
...
@@ -19,8 +17,6 @@
group
:
root
mode
:
'
0600'
no_log
:
true
tags
:
-
lvm-snapshots
-
name
:
ensure our public deploy key is present
copy
:
...
...
@@ -30,8 +26,6 @@
group
:
root
mode
:
'
0644'
no_log
:
true
tags
:
-
lvm-snapshots
-
name
:
ensure we have our lvm-snapshots ssh config
copy
:
...
...
@@ -40,8 +34,6 @@
owner
:
root
group
:
root
mode
:
'
0644'
tags
:
-
lvm-snapshots
-
name
:
ensure our lvm-snapshots ssh config is included
lineinfile
:
...
...
@@ -51,15 +43,13 @@
owner
:
root
group
:
root
mode
:
'
0644'
tags
:
-
lvm-snapshots
-
name
:
ensure we have the program
git
:
repo
:
git@git.fsmpi.rwth-aachen.de:infra/lvm-snapshots.git
dest
:
"
{{
program_dir
}}"
tags
:
-
lvm-snapshots
environment
:
TMPDIR
:
/root/.ansible/tmp
-
name
:
ensure the necessary programs are installed
apt
:
...
...
@@ -67,16 +57,12 @@
-
python3
-
virtualenv
state
:
present
tags
:
-
lvm-snapshots
-
name
:
ensure we have a virtualenv
pip
:
requirements
:
"
{{
program_dir
}}/requirements.txt"
virtualenv
:
"
{{
program_dir
}}"
virtualenv_python
:
python3
tags
:
-
lvm-snapshots
-
name
:
ensure we have a frontend script
template
:
...
...
@@ -85,8 +71,6 @@
owner
:
root
group
:
root
mode
:
'
0755'
tags
:
-
lvm-snapshots
-
name
:
ensure we have our config
template
:
...
...
@@ -95,13 +79,16 @@
owner
:
root
group
:
root
mode
:
'
0644'
tags
:
-
lvm-snapshots
-
name
:
ensure we have a cron job
cron
:
name
:
"
lvm-snapshots"
minute
:
"
*/{{
snapshot_cron_minutes
}}"
job
:
"
/usr/local/sbin/lvm-snapshots
update"
tags
:
-
lvm-snapshots
-
name
:
ensure /etc/lvm/archive does not overflow
cron
:
name
:
"
lvm
archive
cleanup"
hour
:
"
0"
minute
:
"
0"
job
:
'
find
/etc/lvm/archive
-name
"*.vg"
-mtime
+7
-delete'
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