Add backup bind and prom
This commit is contained in:
16
backup.yml
16
backup.yml
@@ -29,6 +29,12 @@
|
||||
6137356332636431643830666461333862613835336631333037
|
||||
tasks:
|
||||
|
||||
|
||||
# - name: Return all secrets from a path
|
||||
# delegate_to: localhost
|
||||
# ansible.builtin.debug:
|
||||
# msg: "{{ lookup('community.hashi_vault.hashi_vault', 'secret=apps/data/postgres token=prout url=https://hash.jingoh.fr') }}"
|
||||
|
||||
- ansible.builtin.git:
|
||||
repo: https://{{ user }}:{{ token }}@gitea.jingoh.fr/staffadmin/backup.git
|
||||
dest: "{{ playbook_dir }}/backup"
|
||||
@@ -64,10 +70,12 @@
|
||||
- /opt/dockerapps/appdata/grafana/etc/grafana.ini
|
||||
#! prometheus
|
||||
- /opt/dockerapps/appdata/prometheus/prometheus/prometheus.yml
|
||||
- /opt/dockerapps/appdata/prometheus/prometheus/alerts_iowait.yml
|
||||
- /opt/dockerapps/appdata/prometheus/prometheus/alerts_memory.yml
|
||||
- /opt/dockerapps/appdata/prometheus/prometheus/alerts_space.yml
|
||||
- /opt/dockerapps/appdata/prometheus/prometheus/alerts_load.yml
|
||||
- /opt/dockerapps/appdata/prometheus/prometheus/alerts_system.yml
|
||||
- /opt/dockerapps/appdata/prometheus/prometheus/alerts_network.yml
|
||||
- /opt/dockerapps/appdata/prometheus/prometheus/alerts_exporter.yml
|
||||
#! bind
|
||||
- /opt/dockerapps/appdata/bind/config/named.conf
|
||||
- /opt/dockerapps/appdata/bind/records/example.com.zone
|
||||
|
||||
- name: Push backup to git
|
||||
ansible.builtin.shell: |
|
||||
|
||||
Reference in New Issue
Block a user