Skip to content
This repository was archived by the owner on Mar 30, 2025. It is now read-only.

Commit af8418a

Browse files
author
staticdev
committed
Remove pycharm role dependency
1 parent 0f71d71 commit af8418a

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ None.
2424
Here is the list of all variables and their default values:
2525

2626
- `install_pycharm`: `false`
27+
- `pycharm_flavor`: `pycharm-community`. You can use also `pycharm-professional` or `pycharm-educational`.
2728
- `install_vscode`: `false`
2829
- `vscode_extensions`: optional list of name_ids of extensions. eg.: ms-python.python (Python Official Extension)
2930

@@ -47,6 +48,7 @@ Here is the list of all variables and their default values:
4748
- role: staticdev.python-developer
4849
vars:
4950
install_pycharm: true
51+
pycharm_flavor: pycharm-educational
5052

5153
# role with vscode and extensions
5254
- hosts: all

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
---
22
install_pycharm: false
3+
pycharm_flavor: pycharm-community
34
install_vscode: false

handlers/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
---
2-
# handlers file for staticdev.python-developer
2+
- name: delete poetry installer
3+
file:
4+
path: "/home/{{ lookup('env', 'USER') }}/get-poetry.py"
5+
state: absent

meta/main.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@ galaxy_info:
3434
- precommit
3535

3636
dependencies:
37-
- name: avanov.pyenv
38-
version: 1.1.0
39-
# - name: oefenweb.pycharm
40-
# version: v5.0.7
41-
# when: "{{ install_pycharm }}"
37+
- name: staticdev.ansible_galaxy_pyenv
38+
version: 1.1.1
4239
# - name: gantsign.visual-studio-code
4340
# version: 6.6.0
4441
# when: "{{ install_vscode }}"

requirements.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
roles:
33
- name: staticdev.ansible_galaxy_pyenv
44
version: 1.1.1
5-
- name: oefenweb.pycharm
6-
version: v5.0.7
7-
when: "{{ install_pycharm }}"
85
- name: gantsign.visual-studio-code
96
version: 6.6.0
107
when: "{{ install_vscode }}"

tasks/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: Install pyenv
33
import_role:
4-
name: avanov.pyenv
4+
name: staticdev.ansible_galaxy_pyenv
55
vars:
66
pyenv_owner: "{{ lookup('env', 'USER') }}"
77
pyenv_path: "{{ lookup('env', 'HOME') }}/pyenv"
@@ -39,12 +39,13 @@
3939
changed_when: false
4040
ignore_errors: true
4141

42-
- name: Download poetry
42+
- name: Download poetry installer
4343
get_url:
4444
url: https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
4545
dest: "{{ lookup('env', 'HOME') }}"
4646
mode: "0400"
4747
when: poetry_version_cmd is failed
48+
notify: delete poetry installer
4849

4950
- name: Install poetry
5051
command: "python {{ lookup('env', 'HOME') }}/get-poetry.py"

tasks/pycharm.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
- name: Install pycharm
3-
include_role:
4-
name: oefenweb.pycharm
3+
community.general.snap:
4+
name: "{{ pycharm_flavor }}"
5+
classic: true
56
become: true

0 commit comments

Comments
 (0)