fix: install packets

This commit is contained in:
2024-06-02 21:33:55 +00:00
parent 5013c21f7b
commit 8b78cae9df
3 changed files with 13 additions and 21 deletions

View File

@@ -31,6 +31,9 @@ docker_python_packages:
- python3-setuptools
- python3-virtualenv
- python3-wheel
- ca-certificates
- curl
- gpg
docker_python_libraries:
- docker==6.1.3

View File

@@ -3,16 +3,17 @@
apt:
update_cache: yes
- name: Install utils
retries: 3
delay: 5
ansible.builtin.apt:
pkg:
- ca-certificates
- curl
- gpg
- name: install required packages
apt:
name: "{{ docker_python_packages }}"
state: present
update_cache: yes
cache_valid_time: 3600
cache_valid_time: 86400
- name: install required python modules
pip:
executable: pip3
name: "{{ docker_python_libraries }}"
- name: Make sure the APT keyring directory exists
file:

View File

@@ -1,16 +1,4 @@
---
- name: install required packages
apt:
name: "{{ docker_python_packages }}"
state: present
update_cache: yes
cache_valid_time: 86400
- name: install required python modules
pip:
executable: pip3
name: "{{ docker_python_libraries }}"
- name: Deploy Netdata Docker container
community.docker.docker_container:
name: netdata