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-setuptools
- python3-virtualenv - python3-virtualenv
- python3-wheel - python3-wheel
- ca-certificates
- curl
- gpg
docker_python_libraries: docker_python_libraries:
- docker==6.1.3 - docker==6.1.3

View File

@@ -3,16 +3,17 @@
apt: apt:
update_cache: yes update_cache: yes
- name: Install utils - name: install required packages
retries: 3 apt:
delay: 5 name: "{{ docker_python_packages }}"
ansible.builtin.apt: state: present
pkg:
- ca-certificates
- curl
- gpg
update_cache: yes 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 - name: Make sure the APT keyring directory exists
file: 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 - name: Deploy Netdata Docker container
community.docker.docker_container: community.docker.docker_container:
name: netdata name: netdata