diff --git a/states/pycharm/defaults.yaml b/states/pycharm/defaults.yaml index 39d28a9..3e527a8 100644 --- a/states/pycharm/defaults.yaml +++ b/states/pycharm/defaults.yaml @@ -4,4 +4,5 @@ pycharm: install_dir: /usr/local/apps release_dir: /usr/local/apps/releases mirror: https://download.jetbrains.com/python + version: "2021.3" config: {} diff --git a/states/pycharm/install.sls b/states/pycharm/install.sls index 65d7eb3..e66abdc 100644 --- a/states/pycharm/install.sls +++ b/states/pycharm/install.sls @@ -17,12 +17,6 @@ pycharm-link: - target: {{ pycharm.release_dir }}/pycharm-community-{{ pycharm.version }} - force: true -pycharm-cleanup: - software.cleanup: - - name: pycharm-community - - path: {{ pycharm.release_dir }} - - version: {{ pycharm.version }} - pycharm-shortcut: file.managed: - name: /usr/share/applications/jetbrains-pycharm-ce.desktop @@ -31,3 +25,9 @@ pycharm-shortcut: - user: root - group: root - mode: 644 + +pycharm-cleanup: + software.cleanup: + - name: pycharm-community + - path: {{ pycharm.release_dir }} + - version: "{{ pycharm.version }}"