Browse Source

backup: create a backup-group instead of hardcoding bind-host

keep-around/549c2509b6c302aea0b970db29f4501b6682d3a8
Loïc Dachary 1 year ago
committed by Loic Dachary
parent
commit
2e323df9c5
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 2
      enough-playbook.yml
  2. 4
      inventory/02-all.yml
  3. 8
      molecule/backup/backup-playbook.yml
  4. 7
      molecule/backup/playbook.yml

2
enough-playbook.yml

@ -7,7 +7,7 @@
- import_playbook: "{{ '$SHARE_DIR/molecule/bind/bind-playbook.yml' | expandvars }}"
- import_playbook: "{{ '$SHARE_DIR/molecule/bind/bind-client-playbook.yml' | expandvars }}"
- import_playbook: "{{ '$SHARE_DIR/molecule/authorized_keys/authorized-keys-playbook.yml' | expandvars }}"
- import_playbook: "{{ '$SHARE_DIR/molecule/preprod/backup-on-bind-playbook.yml' | expandvars }}"
- import_playbook: "{{ '$SHARE_DIR/molecule/backup/backup-playbook.yml' | expandvars }}"
- import_playbook: "{{ '$SHARE_DIR/molecule/icinga/icinga-playbook.yml' | expandvars }}"
- import_playbook: "{{ '$SHARE_DIR/molecule/icinga/monitor-external-ressources-playbook.yml' | expandvars }}"
- import_playbook: "{{ '$SHARE_DIR/molecule/bind/bind-monitoring-playbook.yml' | expandvars }}"

4
inventory/02-all.yml

@ -34,6 +34,10 @@ gitlab:
gitlab-host:
api-host:
backup-group:
hosts:
bind-host:
pad-group:
hosts:
website-host:

8
molecule/backup/backup-playbook.yml

@ -0,0 +1,8 @@
- name: setup backup
hosts: backup-group
become: true
roles:
- role: ansible-role-docker
- role: docker
- role: backup

7
molecule/backup/playbook.yml

@ -1,9 +1,4 @@
---
- import_playbook: ../infrastructure/buster-playbook.yml
- name: setup backup
hosts: bind-host
become: true
roles:
- role: backup
- import_playbook: backup-playbook.yml
- import_playbook: ../misc/uninstall-ntp.yml
Loading…
Cancel
Save