Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
docker_privatebin
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Le Filament
Ansible Roles
docker_privatebin
Validations
ed55c796
Valider
ed55c796
rédigé
Il y a 2 ans
par
Rémi - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[UPD] ansible-lint
parent
b70f1064
Branches
Branches contenant la validation
Étiquettes
v1.0.6
Étiquettes contenant la validation
Aucune requête de fusion associée trouvée
Modifications
5
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
5 fichiers modifiés
.ansible-lint
+7
-0
7 ajouts, 0 suppression
.ansible-lint
.yamllint
+39
-0
39 ajouts, 0 suppression
.yamllint
handlers/main.yml
+5
-5
5 ajouts, 5 suppressions
handlers/main.yml
meta/main.yml
+12
-12
12 ajouts, 12 suppressions
meta/main.yml
tasks/main.yml
+31
-32
31 ajouts, 32 suppressions
tasks/main.yml
avec
94 ajouts
et
49 suppressions
.ansible-lint
0 → 100644
+
7
−
0
Voir le fichier @
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
Ce diff est replié.
Cliquez pour l'agrandir.
.yamllint
0 → 100644
+
39
−
0
Voir le fichier @
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
Ce diff est replié.
Cliquez pour l'agrandir.
handlers/main.yml
+
5
−
5
Voir le fichier @
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
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
meta/main.yml
+
12
−
12
Voir le fichier @
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
:
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
tasks/main.yml
+
31
−
32
Voir le fichier @
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"
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter