This repository was archived by the owner on Mar 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +18
-20
lines changed Expand file tree Collapse file tree 4 files changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ Here is the list of all variables and their default values:
7777
7878## License
7979
80- MIT / BSD
80+ MIT
8181
8282## Author Information
8383
Original file line number Diff line number Diff line change 11---
22- name : Converge
33 hosts : all
4- become : true
54
65 pre_tasks :
76 - name : Update apt cache.
87 apt : update_cache=yes cache_valid_time=600
98 when : ansible_os_family == 'Debian'
9+ become : true
1010
1111 # roles:
1212 # - ansible-role-python-developer
Original file line number Diff line number Diff line change 77 pyenv_path : " {{ ansible_env.HOME }}/pyenv"
88 when : pyenv_python_versions
99
10- - name : Ensure venv installed
10+ - name : Ensure dependencies are installed
1111 package :
12- name : python3-venv
12+ name : " {{ item }} "
1313 state : present
1414 become : true
15+ with_items :
16+ - python3-pip
17+ - python3-venv
1518
1619- name : Check if pipx is installed
1720 command : " {{ ansible_env.HOME }}/.local/bin/pipx --version"
5659 url : https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
5760 dest : " {{ ansible_env.HOME }}/get-poetry.py"
5861 mode : " 0400"
62+ timeout : 20
5963 when : poetry_cmd is failed
6064 notify : delete poetry installer
6165
Original file line number Diff line number Diff line change 11---
2- - name : Download pycharm
3- get_url :
4- url : " {{ pycharm_download_url }}/pycharm-{{ pycharm_flavor }}-{{ pycharm_version }}.tar.gz"
5- dest : " ~/pycharm-{{ pycharm_flavor }}-{{ pycharm_version }}.tar.gz"
6- owner : root
7- group : root
8- mode : 0644
2+ - name : Ensure snapd is installed
3+ package :
4+ name : snapd
5+ state : present
6+ become : true
97
10- - name : Unarchive pycharm
11- unarchive :
12- src : " ~/pycharm-{{ pycharm_flavor }}-{{ pycharm_version }}.tar.gz"
13- dest : " {{ pycharm_install_prefix }}"
14- creates : " {{ pycharm_install_prefix }}/pycharm-{{ pycharm_flavor }}-{{ pycharm_version }}"
15- copy : false
16-
17- - name : Run pycharm install script
18- shell : " {{ pycharm_install_prefix }}/pycharm-{{ pycharm_version }}/bin/pycharm.sh"
8+ - name : Install pycharm
9+ community.general.snap :
10+ name : " {{ pycharm_flavor }}"
11+ classic : true
12+ become : true
You can’t perform that action at this time.
0 commit comments