Skip to content

Commit

Permalink
Update deploy_pgcluster.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Dec 28, 2024
1 parent 4d521f5 commit 52536a3
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions automation/deploy_pgcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,6 @@
- pgbackrest_auto_conf | default(true) | bool # to be able to disable auto backup settings
tags: always

roles:
# (optional) if 'ssh_public_keys' is defined
- role: authorized-keys
tags: ssh_public_keys

- role: pre-checks
vars:
minimal_ansible_version: 2.16.0
timescale_minimal_pg_version: 12 # if enable_timescale is defined
tags: always

- role: hostname

- role: tls_certificate/generate
when: tls_cert_generate|bool

tasks:
- name: Clean dnf cache
ansible.builtin.command: dnf clean all
when:
Expand Down Expand Up @@ -207,6 +190,22 @@
when: pre_deploy_command | default('') | length > 0
tags: pre_deploy, pre_deploy_command

roles:
# (optional) if 'ssh_public_keys' is defined
- role: authorized-keys
tags: ssh_public_keys

- role: pre-checks
vars:
minimal_ansible_version: 2.16.0
timescale_minimal_pg_version: 12 # if enable_timescale is defined
tags: always

- role: hostname

- role: tls_certificate/generate
when: tls_cert_generate|bool

- name: deploy_pgcluster.yml | Deploy etcd cluster
ansible.builtin.import_playbook: etcd_cluster.yml
when: not dcs_exists|bool and dcs_type == "etcd"
Expand Down Expand Up @@ -266,7 +265,6 @@
when: firewall_enabled_at_boot|bool
tags: firewall

- role: hostname
- role: resolv_conf
- role: etc_hosts
- role: add-repository
Expand Down

0 comments on commit 52536a3

Please sign in to comment.