Skip to content
Merged
10 changes: 10 additions & 0 deletions development/playbooks/deploy-dev/deploy-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
- "../../../src/vars/foreman.yml"
- "../../../src/vars/base.yaml"
pre_tasks:
- name: 'Switch to postgresql:16 module if needed'
Comment thread
jeremylenz marked this conversation as resolved.
Outdated
ansible.builtin.command: dnf module switch-to -y postgresql:16
register: module_switch
changed_when: "'Nothing to do' not in module_switch.stdout"
failed_when: false
when:
- ansible_facts['os_family'] == 'RedHat'
- ansible_facts['distribution_major_version'] == '9'

- name: Set development postgresql databases
ansible.builtin.set_fact:
postgresql_databases: >-
Expand Down Expand Up @@ -42,6 +51,7 @@
foreman_development_enabled_plugins: "{{ foreman_development_enabled_plugins + ['foreman_ansible'] }}"
roles:
- role: pre_install
- role: systemd_target
- role: certificates
- role: postgresql
- role: valkey
Expand Down