chore: added install python library

This commit is contained in:
2024-02-26 10:35:45 +00:00
parent 7c02a824b5
commit dd0cc0bebc
2 changed files with 23 additions and 0 deletions

View File

@@ -25,3 +25,14 @@ docker_compose_deploy: false
docker_netdata_install: false
docker_netdata_port: 19999
docker_netdata_version: 'v1.44.2'
docker_python_packages:
- python3-pip
- python3-setuptools
- python3-virtualenv
- python3-wheel
docker_python_libraries:
- docker
- jsondiff
- requests

View File

@@ -1,4 +1,16 @@
---
- 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