Skip to content

Commit

Permalink
common: move apprise and certbot into ansible venv
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed May 28, 2024
1 parent 4a86092 commit d828e00
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 25 deletions.
2 changes: 1 addition & 1 deletion requirements/requirements-docker-controller.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ dnspython==2.6.1
docker==7.1.0
email_validator==2.1.1
exceptiongroup==1.2.1
fastapi==0.111.0
fastapi-cli==0.0.4
fastapi==0.111.0
h11==0.14.0
httpcore==1.0.5
httptools==0.6.1
Expand Down
6 changes: 3 additions & 3 deletions requirements/requirements-lint.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ansible==9.6.0
ansible-lint==24.5.0
ansible==9.6.0
attrs==23.2.0
black==24.4.2
bracex==2.4
Expand All @@ -10,8 +10,8 @@ filelock==3.14.0
importlib_metadata==7.1.0
Jinja2==3.1.4
jmespath==1.0.1
jsonschema==4.22.0
jsonschema-specifications==2023.12.1
jsonschema==4.22.0
markdown-it-py==3.0.0
MarkupSafe==2.1.5
mdurl==0.1.2
Expand All @@ -26,8 +26,8 @@ referencing==0.35.1
resolvelib==1.0.1
rich==13.7.1
rpds-py==0.18.1
ruamel.yaml==0.18.6
ruamel.yaml.clib==0.2.8
ruamel.yaml==0.18.6
subprocess-tee==0.4.1
wcmatch==8.5.2
yamllint==1.35.1
Expand Down
10 changes: 6 additions & 4 deletions requirements/requirements-saltbox.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
ansible==9.6.0
ansible-lint==24.5.0
argon2-cffi==23.1.0
ansible==9.6.0
apprise==1.8.0
argon2-cffi-bindings==21.2.0
argon2-cffi==23.1.0
attrs==23.2.0
black==24.4.2
bracex==2.4
certbot==2.10.0
certifi==2024.2.2
cffi==1.16.0
charset-normalizer==3.3.2
Expand All @@ -17,8 +19,8 @@ idna==3.7
importlib_metadata==7.1.0
Jinja2==3.1.4
jmespath==1.0.1
jsonschema==4.22.0
jsonschema-specifications==2023.12.1
jsonschema==4.22.0
lxml==5.2.2
markdown-it-py==3.0.0
MarkupSafe==2.1.5
Expand All @@ -41,8 +43,8 @@ requests==2.31.0
resolvelib==1.0.1
rich==13.7.1
rpds-py==0.18.1
ruamel.yaml==0.18.6
ruamel.yaml.clib==0.2.8
ruamel.yaml==0.18.6
setuptools==70.0.0
subprocess-tee==0.4.1
tld==0.13
Expand Down
17 changes: 0 additions & 17 deletions roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,23 +108,6 @@
name:
- "run-one"

- name: Install common Python packages (System Python)
ansible.builtin.pip:
name:
- "apprise"
- "certbot"
executable: pip3
state: "latest"
when: ansible_distribution_version is version('22.04', '<=')

- name: Install common Python apt packages (System Python)
ansible.builtin.apt:
state: present
name:
- "apprise"
- "certbot"
when: ansible_distribution_version is version('24.04', '>=')

- name: Fetch PCI Info
ansible.builtin.shell: "lspci -v -s $(lspci | grep -E '.*VGA.*Intel.*' | cut -d' ' -f 1) 2>/dev/null || :"
register: lscpi_resp
Expand Down

0 comments on commit d828e00

Please sign in to comment.