db-koji01: move to rhel9 and postgresql 15
Set host vars to move to rhel9 on next reinstall and setup postgresql 15 module. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
8a6994fa84
commit
718a84c645
2 changed files with 17 additions and 6 deletions
|
@ -11,9 +11,9 @@
|
|||
stream=12
|
||||
profiles=
|
||||
state=enabled
|
||||
when: ansible_distribution_major_version|int >= 8 and ansible_distribution == 'RedHat' and not inventory_hostname.startswith('db-fas01.stg')
|
||||
when: ansible_distribution_major_version|int >= 8 and ansible_distribution == 'RedHat' and not inventory_hostname.startswith(('db-fas01.stg','db-koji01'))
|
||||
|
||||
- name: on db-fas01.stg enable the postgresql 9.6 module.
|
||||
- name: on db-fas01 enable the postgresql 9.6 module.
|
||||
copy:
|
||||
dest: /etc/dnf/modules.d/postgresql.module
|
||||
content: |
|
||||
|
@ -22,7 +22,18 @@
|
|||
stream=9.6
|
||||
profiles=
|
||||
state=enabled
|
||||
when: inventory_hostname.startswith('db-fas01.stg')
|
||||
when: inventory_hostname.startswith('db-fas01')
|
||||
|
||||
- name: on db-koji01 enable the postgresql 15 module.
|
||||
copy:
|
||||
dest: /etc/dnf/modules.d/postgresql.module
|
||||
content: |
|
||||
[postgresql]
|
||||
name=postgresql
|
||||
stream=15
|
||||
profiles=
|
||||
state=enabled
|
||||
when: inventory_hostname.startswith('db-koji01')
|
||||
|
||||
- name: install postgresql server packages (EL < 8)
|
||||
package:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue