--- - name: Is python3 available ansible.builtin.command: "python3 --version" ignore_errors: true register: python3_is_available changed_when: false - name: Install git become: true ansible.builtin.package: name: git