Add logrotate for backup gitea and vault
This commit is contained in:
15
ansible.cfg
15
ansible.cfg
@@ -4,10 +4,23 @@ callback_whitelist = timer, profile_tasks, log_plays
|
||||
#log_path= /var/log/ansible/ansible-base.log
|
||||
display_args_to_stdout= true
|
||||
load_callback_plugins= yes
|
||||
|
||||
#callback_plugins=/Users/stephanegratias/Library/Python/3.11/lib/python/site-packages/ara/plugins/callback
|
||||
#to keep display output, comment stdout_callback
|
||||
#stdout_callback= log_plays
|
||||
|
||||
# [ssh_connection]
|
||||
# ssh_args=-o ForwardAgent=yes
|
||||
|
||||
|
||||
|
||||
# [ara]
|
||||
# api_client = http
|
||||
# api_server = https://ara.jingoh.fr
|
||||
# # api_username = test
|
||||
# # api_password = teetst
|
||||
# localhost_as_hostname_format=hostname
|
||||
# argument_labels = check,subset,tags
|
||||
# default_labels=lab
|
||||
# # ignored_facts =
|
||||
# ignored_files = .ansible/tmp,vault.yaml,vault.yml
|
||||
# ignored_arguments = vault_password_files
|
||||
@@ -150,6 +150,17 @@ logrotate_scripts:
|
||||
# script: docker-compose restart gitea
|
||||
# - postrotate: docker-compose restart vaultwarden
|
||||
# - postrotate: docker-compose restart grafana
|
||||
- name: dockerapps-backup
|
||||
paths:
|
||||
- /opt/dockerapps/backup/gitea-dump-*.zip
|
||||
- /opt/dockerapps/appdata/vaultwarden/backup/*.gpg
|
||||
- /opt/dockerapps/appdata/vaultwarden/backup/*gpg.1.gz
|
||||
options:
|
||||
- rotate 12
|
||||
- monthly
|
||||
- compress
|
||||
- missingok
|
||||
- delaycompress
|
||||
|
||||
|
||||
##########
|
||||
|
||||
15
hosts
15
hosts
@@ -1,6 +1,6 @@
|
||||
; [perso]
|
||||
; ovh_fr ansible_host=37.187.127.90 ansible_user=stephane
|
||||
; scaleway_fr ansible_host=163.172.84.28 ansible_user=stephane
|
||||
[perso]
|
||||
ovh_fr ansible_host=37.187.127.90 ansible_user=stephane
|
||||
scaleway_fr ansible_host=163.172.84.28 ansible_user=stephane
|
||||
|
||||
; # TO KNOW WHOIS CHISEL SERVER
|
||||
; [server]
|
||||
@@ -21,3 +21,12 @@
|
||||
|
||||
|
||||
#kubectl label node ubuntu-worker node-role.kubernetes.io/worker ubuntu-worker
|
||||
|
||||
|
||||
; curl -v -X POST \
|
||||
; -H "Content-Type: application/json" \
|
||||
; -d '{
|
||||
; "auth": "admin",
|
||||
; "password": "test"
|
||||
; }' \
|
||||
; https://semaphore.jingoh.fr/auth/login
|
||||
1
kube.yml
1
kube.yml
@@ -17,6 +17,7 @@
|
||||
msg: "{{ ansible_hostname }} : {{ ansible_distribution }} {{ ansible_distribution_version }} - {{ ansible_default_ipv4.address }}"
|
||||
tags:
|
||||
- always
|
||||
- test
|
||||
|
||||
- name: Add the overlay and br_netfilter modules and make sure it is loaded after reboots
|
||||
community.general.modprobe:
|
||||
|
||||
Reference in New Issue
Block a user