Skip to content

Commit

Permalink
chore: debian system related deps
Browse files Browse the repository at this point in the history
  • Loading branch information
labasubagia committed Jul 19, 2024
1 parent 293dd00 commit 4dbd596
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
13 changes: 11 additions & 2 deletions ansible/tasks/dev/python/setup-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
vars:
is_remove: false

python_pkgs:
python_only_install_pkgs:
# debian system depends on python3
# removing this possibly break the system
- python3

python_pkgs:
- python3-pip
- virtualenv
- pipx
Expand All @@ -17,7 +21,7 @@
- name: Setup Python > Install packages
become: true
ansible.builtin.apt:
name: "{{ python_pkgs }}"
name: "{{ python_only_install_pkgs + python_pkgs }}"
state: present

- name: Setup Python > Check pipx executable exists
Expand Down Expand Up @@ -68,3 +72,8 @@
ansible.builtin.apt:
name: "{{ python_pkgs }}"
state: absent

- name: Setup scrcpy > remove unnecessary deps
become: true
ansible.builtin.apt:
autoremove: true
17 changes: 10 additions & 7 deletions ansible/tasks/tools/scrcpy/setup-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
vars:
is_remove: false

required_pkgs:
# ! do not remove it
# some packages might required by other system packages
# in the end of installation, just run `apt autoremove`
scrcpy_build_deps:
- ffmpeg
- adb
- wget
Expand Down Expand Up @@ -39,7 +42,7 @@
- name: Setup scrcpy > Install required deps
become: true
ansible.builtin.apt:
name: "{{ required_pkgs }}"
name: "{{ scrcpy_build_deps }}"
state: present

- name: Setup scrcpy > Clone repo
Expand Down Expand Up @@ -77,10 +80,10 @@
# - name: Setup scrcpy > Remove required packages
# become: true
# ansible.builtin.apt:
# name: "{{ required_pkgs }}"
# name: "{{ scrcpy_build_deps }}"
# state: absent

- name: Setup scrcpy > remove unecessary deps
become: true
ansible.builtin.apt:
autoremove: true
- name: Setup scrcpy > remove unnecessary deps
become: true
ansible.builtin.apt:
autoremove: true

0 comments on commit 4dbd596

Please sign in to comment.