From 91914d94863e67d41ad2ccfc900b40672cb0bd93 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Thu, 12 Dec 2024 03:35:36 +0300 Subject: [PATCH] fix error --- playbook.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) 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