diff --git a/tasks/install.yaml b/tasks/install.yaml index 49b7347..01651c5 100644 --- a/tasks/install.yaml +++ b/tasks/install.yaml @@ -22,7 +22,6 @@ group: "root" mode: "0775" when: "atuin_version not in atuin_version_check.stdout" - register: "atuin_download" # install atuin - name: "install atuin" @@ -34,7 +33,7 @@ group: "root" mode: "0755" remote_src: true - when: "atuin_download.changed" + when: "atuin_version not in atuin_version_check.stdout" # install systemd service - name: "install service" @@ -51,4 +50,4 @@ ansible.builtin.file: path: "/tmp/atuin-x86_64-unknown-linux-gnu.tar.gz" state: "absent" - when: "atuin_download.changed" + when: "atuin_version not in atuin_version_check.stdout"