mirror of
https://gitea.0xace.cc/ansible-galaxy/patroni.git
synced 2024-11-25 08:06:39 +00:00
22 lines
604 B
YAML
22 lines
604 B
YAML
|
- name: Enable Python 3.9 module
|
||
|
shell: dnf module enable -y python39
|
||
|
register: enable_python39_module
|
||
|
changed_when: "'Nothing to do' not in enable_python39_module.stdout"
|
||
|
|
||
|
- name: Install Python 3.9
|
||
|
dnf:
|
||
|
name: python39
|
||
|
state: present
|
||
|
|
||
|
- name: Set python3.9 as python
|
||
|
shell: alternatives --set python /usr/bin/python3.9
|
||
|
register: set_python39_as_python
|
||
|
changed_when: false
|
||
|
failed_when: set_python39_as_python.stdout != ''
|
||
|
|
||
|
- name: "Install Patroni {{ patroni_version }} with Python 3.9"
|
||
|
dnf:
|
||
|
name: "{{ patroni_python39_packages }}"
|
||
|
disablerepo: pgdg*
|
||
|
state: latest
|