Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker_privatebin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Filament
Ansible Roles
docker_privatebin
Commits
ed55c796
Commit
ed55c796
authored
1 year ago
by
Rémi - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
[UPD] ansible-lint
parent
b70f1064
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.ansible-lint
+7
-0
7 additions, 0 deletions
.ansible-lint
.yamllint
+39
-0
39 additions, 0 deletions
.yamllint
handlers/main.yml
+5
-5
5 additions, 5 deletions
handlers/main.yml
meta/main.yml
+12
-12
12 additions, 12 deletions
meta/main.yml
tasks/main.yml
+31
-32
31 additions, 32 deletions
tasks/main.yml
with
94 additions
and
49 deletions
.ansible-lint
0 → 100644
+
7
−
0
View file @
ed55c796
---
warn_list: # or 'skip_list' to silence them completely
- git-latest # Git checkouts must contain explicit version
- ignore-errors # Use failed_when and specify error conditions instead of using ignore_errors
- no-changed-when # Commands should not change things if nothing needs doing
- no-handler # Tasks that run when changed should likely be handlers
- package-latest # Package installs should not use latest
This diff is collapsed.
Click to expand it.
.yamllint
0 → 100644
+
39
−
0
View file @
ed55c796
---
# Based on ansible-lint config
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
colons:
max-spaces-after: -1
level: error
commas:
max-spaces-after: -1
level: error
# comments enable
comments: enable
comments-indentation: enable
document-start: enable
empty-lines:
max: 3
level: error
hyphens:
level: error
indentation:
level: warning
indent-sequences: consistent
spaces: 4
check-multi-line-strings: true
key-duplicates: enable
line-length: disable
new-line-at-end-of-file: enable
new-lines:
type: unix
# trailing-spaces enable
trailing-spaces: enable
truthy: enable
This diff is collapsed.
Click to expand it.
handlers/main.yml
+
5
−
5
View file @
ed55c796
---
---
-
name
:
s
tart privatebin docker
-
name
:
S
tart privatebin docker
docker_compose
:
community.docker.
docker_compose
:
project_src
:
/home/docker/
project_src
:
/home/docker/
files
:
privatebin.yaml
files
:
privatebin.yaml
project_name
:
privatebin
project_name
:
privatebin
...
...
This diff is collapsed.
Click to expand it.
meta/main.yml
+
12
−
12
View file @
ed55c796
---
---
galaxy_info
:
galaxy_info
:
author
:
Rémi
author
:
lefilament
description
:
Role for deploying Privatebin on Docker
description
:
Role for deploying Privatebin on Docker
company
:
Le Filament (https://le-filament.com)
company
:
Le Filament (https://le-filament.com)
license
:
AGPL-3.0-or-later
license
:
AGPL-3.0-or-later
min_ansible_version
:
2.1
min_ansible_version
:
"
2.1
"
platforms
:
platforms
:
-
name
:
Ubuntu
-
name
:
Ubuntu
versions
:
versions
:
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
31
−
32
View file @
ed55c796
...
@@ -2,18 +2,18 @@
...
@@ -2,18 +2,18 @@
## Install privatebin docker
## Install privatebin docker
-
name
:
Install privatebin docker
-
name
:
Install privatebin docker
template
:
ansible.builtin.
template
:
src
:
privatebin.yaml.j2
src
:
privatebin.yaml.j2
dest
:
/home/docker/privatebin.yaml
dest
:
/home/docker/privatebin.yaml
owner
:
root
owner
:
root
group
:
root
group
:
root
mode
:
'
0400'
mode
:
'
0400'
notify
:
notify
:
-
s
tart privatebin docker
-
S
tart privatebin docker
## Backup Privatebin section
## Backup Privatebin section
-
name
:
Install privatebin backup compose file
-
name
:
Install privatebin backup compose file
template
:
ansible.builtin.
template
:
src
:
backup.yaml.j2
src
:
backup.yaml.j2
dest
:
/home/docker/backups/backup-privatebin.yaml
dest
:
/home/docker/backups/backup-privatebin.yaml
owner
:
root
owner
:
root
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
when
:
inventory_hostname in groups['maintenance_contract']
when
:
inventory_hostname in groups['maintenance_contract']
-
name
:
Install privatebin backup2 compose file
-
name
:
Install privatebin backup2 compose file
template
:
ansible.builtin.
template
:
src
:
backup2.yaml.j2
src
:
backup2.yaml.j2
dest
:
/home/docker/backups/backup2-privatebin.yaml
dest
:
/home/docker/backups/backup2-privatebin.yaml
owner
:
root
owner
:
root
...
@@ -30,17 +30,16 @@
...
@@ -30,17 +30,16 @@
mode
:
'
0400'
mode
:
'
0400'
when
:
inventory_hostname in groups['maintenance_contract']
when
:
inventory_hostname in groups['maintenance_contract']
-
name
:
Add cron job to run backup every day
-
name
:
add cron job to run backup every day
ansible.builtin.cron
:
cron
:
name
:
backup privatebin
name
:
backup privatebin
minute
:
"
25"
minute
:
"
25"
hour
:
"
04"
hour
:
"
04"
job
:
/usr/bin/docker-compose -f /home/docker/backups/backup-privatebin.yaml run --rm backup_privatebin
job
:
/usr/bin/docker-compose -f /home/docker/backups/backup-privatebin.yaml run --rm backup_privatebin
when
:
inventory_hostname in groups['maintenance_contract']
when
:
inventory_hostname in groups['maintenance_contract']
-
name
:
a
dd cron job to run backup2 every day
-
name
:
A
dd cron job to run backup2 every day
cron
:
ansible.builtin.
cron
:
name
:
backup2 privatebin
name
:
backup2 privatebin
minute
:
"
35"
minute
:
"
35"
hour
:
"
01"
hour
:
"
01"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment