diff --git a/user.yml b/user.yml index f665ce7..902a317 100644 --- a/user.yml +++ b/user.yml @@ -361,67 +361,6 @@ tags: - firefox -- block: - - name: look of current installation - stat: - path: /home/{{ user.name }}/.opt/portfolio-performance-{{ portfolio_performace_version }} - register: stat_portfolio_performance_installation - - - block: - - name: create temporary directory - tempfile: - state: directory - register: tempdir - - - name: download portfolio performance - get_url: - url: https://github.com/buchen/portfolio/releases/download/{{ portfolio_performace_version }}/PortfolioPerformance-{{ portfolio_performace_version }}-linux.gtk.x86_64.tar.gz - dest: "{{ tempdir.path }}/PortfolioPerformance.{{ portfolio_performace_version }}.tar.gz" - force: false - - - name: create destination directory - file: - state: directory - path: "{{ tempdir.path }}/PortfolioPerformance" - when: not stat_portfolio_performance_installation.stat.exists - - - name: unpack portfolio performance - unarchive: - src: "{{ tempdir.path }}/PortfolioPerformance.{{ portfolio_performace_version }}.tar.gz" - owner: "{{ user.name }}" - group: "{{ user_group_name }}" - mode: '0755' - dest: "{{ tempdir.path }}/PortfolioPerformance" - remote_src: true - - - name: install portfolio performance - synchronize: - src: "{{ tempdir.path }}/PortfolioPerformance" - dest: /home/{{ user.name }}/.opt/portfolio-performance-{{ portfolio_performace_version }} - recursive: true - checksum: true - delete: true - - - name: clean up temp directory - file: - path: "{{ tempdir.path }}" - state: absent - - when: - - not stat_portfolio_performance_installation.stat.exists - - not ansible_check_mode - - - name: link portfolio performance - file: - src: /home/{{ user.name }}/.opt/portfolio-performance-{{ portfolio_performace_version }}/PortfolioPerformance/portfolio/PortfolioPerformance - dest: /home/{{ user.name }}/.optbin/portfolio-performance - owner: "{{ user.name }}" - group: "{{ user_group_name }}" - state: link - force: true - tags: - - portfolio-performance - - name: handle autostart units block: - name: create systemd user directory