Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -48,6 +57,7 @@
- role: candlepin
- role: httpd
- role: pulp
- role: systemd_target
- role: foreman_development
vars:
foreman_development_oauth_consumer_key: "{{ foreman_oauth_consumer_key }}"
Expand Down
1 change: 1 addition & 0 deletions src/roles/postgresql/tasks/upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
ansible.builtin.systemd:
name: foreman.target
state: stopped
failed_when: false
Comment thread
jeremylenz marked this conversation as resolved.
Outdated

- name: Wait for port 5432 to be completely freed by Podman
ansible.builtin.wait_for:
Expand Down
Loading