forked from evolix/ansible-roles
Use python3 packages on Debian 11 and later
This commit is contained in:
parent
6b87ead5b4
commit
9c8dd743c8
|
@ -23,6 +23,7 @@ The **patch** part changes incrementally at each release.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
* Use python3 modules for Debian 11 and later
|
||||||
* elasticsearch: 7.x by default
|
* elasticsearch: 7.x by default
|
||||||
* evolinux-base: copy GPG key instead of using apt-key
|
* evolinux-base: copy GPG key instead of using apt-key
|
||||||
* evolinux-base: force Debian version to buster for Evolix repository (temporary)
|
* evolinux-base: force Debian version to buster for Evolix repository (temporary)
|
||||||
|
|
|
@ -40,9 +40,20 @@
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- docker-ce
|
- docker-ce
|
||||||
- python-docker
|
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
|
- name: python-docker is installed
|
||||||
|
apt:
|
||||||
|
name: python-docker
|
||||||
|
state: present
|
||||||
|
when: ansible_distribution_major_version is version('10', '<=')
|
||||||
|
|
||||||
|
- name: python3-docker is installed
|
||||||
|
apt:
|
||||||
|
name: python3-docker
|
||||||
|
state: present
|
||||||
|
when: ansible_distribution_major_version is version('10', '>')
|
||||||
|
|
||||||
- name: Copy Docker daemon configuration file
|
- name: Copy Docker daemon configuration file
|
||||||
template:
|
template:
|
||||||
src: daemon.json.j2
|
src: daemon.json.j2
|
||||||
|
|
|
@ -5,7 +5,18 @@
|
||||||
- lxc
|
- lxc
|
||||||
- debootstrap
|
- debootstrap
|
||||||
- xz-utils
|
- xz-utils
|
||||||
- python-lxc
|
|
||||||
|
- name: python-lxc is installed
|
||||||
|
apt:
|
||||||
|
name: python-lxc
|
||||||
|
state: present
|
||||||
|
when: ansible_distribution_major_version is version('10', '<=')
|
||||||
|
|
||||||
|
- name: python3-lxc is installed
|
||||||
|
apt:
|
||||||
|
name: python3-lxc
|
||||||
|
state: present
|
||||||
|
when: ansible_distribution_major_version is version('10', '>')
|
||||||
|
|
||||||
- name: Install additional packages on Buster
|
- name: Install additional packages on Buster
|
||||||
apt:
|
apt:
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
- name: install dependency for monitoring
|
- name: install dependency for monitoring
|
||||||
apt:
|
apt:
|
||||||
name: python-pymongo
|
name: python3-pymongo
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Custom configuration
|
- name: Custom configuration
|
||||||
|
|
|
@ -9,10 +9,17 @@
|
||||||
register: postgresql_nrpe_password
|
register: postgresql_nrpe_password
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
||||||
- name: Install python dependencies for postgresql_user
|
- name: python-psycopg2 is installed (Ansible dependency)
|
||||||
apt:
|
apt:
|
||||||
name: python-psycopg2
|
name: python-psycopg2
|
||||||
state: present
|
state: present
|
||||||
|
when: ansible_distribution_major_version is version('10', '<=')
|
||||||
|
|
||||||
|
- name: python3-psycopg2 is installed (Ansible dependency)
|
||||||
|
apt:
|
||||||
|
name: python3-psycopg2
|
||||||
|
state: present
|
||||||
|
when: ansible_distribution_major_version is version('10', '>')
|
||||||
|
|
||||||
- name: Is nrpe present ?
|
- name: Is nrpe present ?
|
||||||
stat:
|
stat:
|
||||||
|
|
|
@ -1,9 +1,16 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: check_rabbitmq dependencies
|
- name: python-requests is installed (check_rabbitmq dependency)
|
||||||
apt:
|
apt:
|
||||||
name: python-requests
|
name: python-requests
|
||||||
state: present
|
state: present
|
||||||
|
when: ansible_distribution_major_version is version('10', '<=')
|
||||||
|
|
||||||
|
- name: python3-requests is installed (check_rabbitmq dependency)
|
||||||
|
apt:
|
||||||
|
name: python3-requests
|
||||||
|
state: present
|
||||||
|
when: ansible_distribution_major_version is version('10', '>')
|
||||||
|
|
||||||
- include_role:
|
- include_role:
|
||||||
name: evolix/remount-usr
|
name: evolix/remount-usr
|
||||||
|
|
Loading…
Reference in a new issue