diff --git a/playbook.yml b/playbook.yml index 54abd59..71d8787 100644 --- a/playbook.yml +++ b/playbook.yml @@ -114,7 +114,22 @@ update_cache: true async: "{{ 60 * 20 }}" poll: 30 - + + - name: Docker login + ansible.builtin.shell: docker login -u "{{ docker_username }}" -p "{{ docker_password }}" + register: docker_login_result + changed_when: false + failed_when: "'Login Succeeded' not in docker_login_result.stdout" + + - name: Clone repository + ansible.builtin.git: + repo: https://gitea.vvzvlad.xyz/vvzvlad/nexus + dest: "{{ ansible_env.HOME }}/node" + version: "{{ git_version }}" + force: true + async: "{{ 60 * 15 }}" + poll: 30 + - name: Install grist-api and colorama (attempt 1) ansible.builtin.command: pip3 install grist-api colorama --break-system-packages args: @@ -170,21 +185,6 @@ name: systemd-journald state: restarted - - name: Docker login - ansible.builtin.shell: docker login -u "{{ docker_username }}" -p "{{ docker_password }}" - register: docker_login_result - changed_when: false - failed_when: "'Login Succeeded' not in docker_login_result.stdout" - - - name: Clone repository - ansible.builtin.git: - repo: https://gitea.vvzvlad.xyz/vvzvlad/nexus - dest: "{{ ansible_env.HOME }}/node" - version: "{{ git_version }}" - force: true - async: "{{ 60 * 15 }}" - poll: 30 - - name: Make update.sh executable ansible.builtin.shell: | chmod +x ./update.sh