Merge branch 'master' of ssh://gitea.mewissen.site:22422/rene/ansible-pull
This commit is contained in:
@@ -1,2 +1 @@
|
||||
/opt/docker
|
||||
/var/lib/docker/volumes
|
||||
|
||||
0
roles/backup/files/config/podman01_excludes.txt
Normal file
0
roles/backup/files/config/podman01_excludes.txt
Normal file
1
roles/backup/files/config/podman01_includes.txt
Normal file
1
roles/backup/files/config/podman01_includes.txt
Normal file
@@ -0,0 +1 @@
|
||||
/var/lib/containers
|
||||
@@ -1,5 +1,5 @@
|
||||
- name: backup | system setup | create backup config directory
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
loop:
|
||||
@@ -8,24 +8,24 @@
|
||||
- "/opt/backup/config"
|
||||
|
||||
- name: backup | system setup | create a link to backup script
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "/opt/backup/bin/backup_remote.bash"
|
||||
state: link
|
||||
src: "{{ ansible_user_dir }}/bin/backup_remote.bash"
|
||||
|
||||
- name: backup | system setup | copy backup config files
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
dest: "/opt/backup/config/"
|
||||
src: "config/"
|
||||
|
||||
- name: backup | system setup | copy backup config files 2
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: "backup_remote.j2"
|
||||
dest: "/opt/backup/config/backup_remote.conf"
|
||||
force: Yes
|
||||
|
||||
- name: backup | system setup | add entries to ssh_config
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
dest: "{{ ansible_user_dir }}/.ssh/config"
|
||||
block: "{{ lookup('template', 'ssh_config.j2') }}"
|
||||
marker: "## {mark} ANSIBLE MANAGED BLOCK FOR backup"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
hosts_to_backup:
|
||||
- { hostname: "mariadb02", fqdn: "mariadb02.universe.local." }
|
||||
- { hostname: "haproxy02", fqdn: "haproxy02.universe.local." }
|
||||
- { hostname: "AdGuard", fqdn: "AdGuard.universe.local." }
|
||||
- { hostname: "mail", fqdn: "mail.universe.local." }
|
||||
- { hostname: "owntrack", fqdn: "owntrack.universe.local." }
|
||||
- { hostname: "endor", fqdn: "endor.universe.local." }
|
||||
- { hostname: "step-ca", fqdn: "step-ca.universe.local." }
|
||||
@@ -10,36 +10,42 @@ hosts_to_backup:
|
||||
- { hostname: "searx", fqdn: "searx.universe.local." }
|
||||
- { hostname: "dnspri", fqdn: "dnspri.universe.local." }
|
||||
- { hostname: "gs1900-8hp", fqdn: "gs1900-8hp.universe.local." }
|
||||
- { hostname: "librenms", fqdn: "librenms.universe.local." }
|
||||
- { hostname: "webserver", fqdn: "webserver.universe.local." }
|
||||
- { hostname: "agh01", fqdn: "agh01.universe.local." }
|
||||
- { hostname: "mastodon", fqdn: "mastodon.universe.local." }
|
||||
- { hostname: "icinga", fqdn: "icinga.universe.local." }
|
||||
- { hostname: "haproxy01", fqdn: "haproxy01.universe.local." }
|
||||
- { hostname: "freeradius", fqdn: "freeradius.universe.local." }
|
||||
- { hostname: "dhcp-kea", fqdn: "dhcp-kea.universe.local." }
|
||||
- { hostname: "pi-alert-lan", fqdn: "pi-alert-lan.universe.local." }
|
||||
- { hostname: "mariadb01", fqdn: "mariadb01.universe.local." }
|
||||
- { hostname: "dhcp-stork", fqdn: "dhcp-stork.universe.local." }
|
||||
- { hostname: "paperless", fqdn: "paperless.universe.local." }
|
||||
- { hostname: "truenas", fqdn: "truenas.universe.local." }
|
||||
- { hostname: "grafana", fqdn: "grafana.universe.local." }
|
||||
- { hostname: "idrac-dell", fqdn: "idrac-dell.universe.local." }
|
||||
- { hostname: "docker01", fqdn: "docker01.universe.local." }
|
||||
- { hostname: "pi-alert", fqdn: "pi-alert.universe.local." }
|
||||
- { hostname: "tatooine", fqdn: "tatooine.universe.local." }
|
||||
- { hostname: "pixelfed", fqdn: "pixelfed.universe.local." }
|
||||
- { hostname: "pve2", fqdn: "pve2.universe.local." }
|
||||
- { hostname: "dnssec2", fqdn: "dnssec2.universe.local." }
|
||||
- { hostname: "pve", fqdn: "pve.universe.local." }
|
||||
- { hostname: "jitsimeet", fqdn: "jitsimeet.universe.local." }
|
||||
- { hostname: "haproxy", fqdn: "haproxy.universe.local." }
|
||||
- { hostname: "homeassistant", fqdn: "homeassistant.universe.local." }
|
||||
- { hostname: "ns1", fqdn: "ns1.universe.local." }
|
||||
- { hostname: "pve-ha", fqdn: "pve-ha.universe.local." }
|
||||
- { hostname: "backup", fqdn: "backup.universe.local." }
|
||||
- { hostname: "tinyproxy", fqdn: "tinyproxy.universe.local." }
|
||||
- { hostname: "bastion", fqdn: "bastion.universe.local." }
|
||||
- { hostname: "tatooine2", fqdn: "tatooine2.universe.local." }
|
||||
- { hostname: "mailcow", fqdn: "mailcow.universe.local." }
|
||||
- { hostname: "netbox", fqdn: "netbox.universe.local." }
|
||||
- { hostname: "AdGuard", fqdn: "AdGuard.universe.local." }
|
||||
- { hostname: "samba-ad-dc2", fqdn: "samba-ad-dc2.universe.local." }
|
||||
- { hostname: "graylog", fqdn: "graylog.universe.local." }
|
||||
- { hostname: "bmc-truenas", fqdn: "bmc-truenas.universe.local." }
|
||||
- { hostname: "shinobi", fqdn: "shinobi.universe.local." }
|
||||
- { hostname: "nextcloud", fqdn: "nextcloud.universe.local." }
|
||||
- { hostname: "podman01", fqdn: "podman01.universe.local." }
|
||||
- { hostname: "docker02", fqdn: "docker02.universe.local." }
|
||||
- { hostname: "dnssec1", fqdn: "dnssec1.universe.local." }
|
||||
- { hostname: "samba-ad-dc1", fqdn: "samba-ad-dc1.universe.local." }
|
||||
|
||||
Reference in New Issue
Block a user