update
This commit is contained in:
+10
@@ -50,6 +50,7 @@
|
||||
mode: '0644'
|
||||
notify: Restart docker
|
||||
|
||||
|
||||
- name: Open Firewall port
|
||||
firewalld:
|
||||
# service: docker-registry
|
||||
@@ -59,6 +60,15 @@
|
||||
immediate: yes
|
||||
when: ansible_facts['os_family'] == "RedHat"
|
||||
|
||||
- name: Close Firewall port
|
||||
firewalld:
|
||||
# service: docker-registry
|
||||
port: 2375/tcp
|
||||
permanent: true
|
||||
state: disabled
|
||||
immediate: yes
|
||||
when: ansible_facts['os_family'] == "RedHat"
|
||||
|
||||
- name: Create /volumes directory
|
||||
file:
|
||||
path: /volumes
|
||||
|
||||
@@ -32,3 +32,4 @@ common_packages:
|
||||
|
||||
proxmox_packages:
|
||||
- unattended-upgrades
|
||||
- borgmatic
|
||||
|
||||
+5
-4
@@ -2,6 +2,7 @@
|
||||
atc-docker01.dell-atc.lan
|
||||
atc-docker02.dell-atc.lan
|
||||
atc-db01.dell-atc.lan
|
||||
atc-dns1.dell-atc.lan
|
||||
# atc-db02.dell-atc.lan
|
||||
atc-lake01.dell-atc.lan
|
||||
atc-elastic01.dell-atc.lan
|
||||
@@ -24,8 +25,9 @@ atc-mgt01.dell-atc.lan
|
||||
atc-docker01.dell-atc.lan
|
||||
atc-docker02.dell-atc.lan
|
||||
atc-gpu-bart.dell-atc.lan
|
||||
atc-gpu-mo1.dell-atc.lan
|
||||
# atc-dns1.dell-atc.lan
|
||||
atc-gpu-mo2.dell-atc.lan
|
||||
atc-db02.dell-atc.lan
|
||||
atc-dns1.dell-atc.lan
|
||||
# atc-dns2.dell-atc.lan
|
||||
|
||||
[rhel]
|
||||
@@ -33,10 +35,9 @@ atc-docker01.dell-atc.lan
|
||||
atc-docker02.dell-atc.lan
|
||||
atc-mgt01.dell-atc.lan
|
||||
atc-gpu-bart.dell-atc.lan
|
||||
atc-gpu-mo2.dell-atc.lan
|
||||
atc-nas.dell-atc.lan
|
||||
atc-gpu-bart.dell-atc.lan
|
||||
atc-backup.dell-atc.lan
|
||||
atc-nas.dell-atc.lan
|
||||
atc-db01.dell-atc.lan
|
||||
|
||||
[borg_servers]
|
||||
|
||||
+15
-1
@@ -7,7 +7,22 @@
|
||||
name: 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm'
|
||||
state: present
|
||||
|
||||
- name: Postgres RPMs
|
||||
ansible.builtin.dnf:
|
||||
name:
|
||||
- postgresql18-server
|
||||
- postgresql18-contrib
|
||||
state: latest
|
||||
|
||||
tasks:
|
||||
- name: PG Backup directory
|
||||
file:
|
||||
path: '/var/backups/postgres'
|
||||
state: directory
|
||||
mode: '0775'
|
||||
owner: postgres
|
||||
group: postgres
|
||||
|
||||
- name: Backup script
|
||||
copy:
|
||||
src: 'bin/pg-backup'
|
||||
@@ -20,4 +35,3 @@
|
||||
minute: 30
|
||||
hour: 23
|
||||
job: /usr/local/bin/pg-backup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user