--- - name: Set FZF install path if not set ansible.builtin.set_fact: fzf_install_path: "{{ xdg_data_home + '/fzf' }}" when: fzf_install_path is not defined - name: Get FZF from git ansible.builtin.git: repo: https://github.com/junegunn/fzf.git dest: "{{ fzf_install_path }}" version: "{{ fzf_git_version | default('0.37.0') }}" depth: 1 tags: - fzf - prereq - name: Check if FZF shell files have been generated ansible.builtin.stat: path: "{{ xdg_config_home }}/fzf" register: fzf_shell_exists - name: Install FZF when: not fzf_shell_exists.stat.exists ansible.builtin.command: argv: - "{{ fzf_install_path }}/install" - --key-bindings - --completion - --no-update-rc - --xdg tags: - fzf - prereq