diff --git a/ansible.cfg b/ansible.cfg index ac89418..5731227 100644 --- a/ansible.cfg +++ b/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 \ No newline at end of file diff --git a/host_vars/scaleway_fr.yml b/host_vars/scaleway_fr.yml index 2b8997d..ed33203 100644 --- a/host_vars/scaleway_fr.yml +++ b/host_vars/scaleway_fr.yml @@ -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 ########## diff --git a/hosts b/hosts index bc64f56..6a46c7c 100644 --- a/hosts +++ b/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] @@ -20,4 +20,13 @@ ; ubuntu-worker ansible_host=192.168.33.11 ansible_user=vagrant ansible_password=vagrant -#kubectl label node ubuntu-worker node-role.kubernetes.io/worker ubuntu-worker \ No newline at end of file +#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 \ No newline at end of file diff --git a/kube.yml b/kube.yml index d40a159..c64b46c 100644 --- a/kube.yml +++ b/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: