From 5ef88f7beff2433519c9f255dd968dea3b26dfa4 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Mon, 11 Jul 2022 15:19:42 +0800 Subject: [PATCH] Update main.yml --- apps/roles/role_init/tasks/main.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/apps/roles/role_init/tasks/main.yml b/apps/roles/role_init/tasks/main.yml index 1c72608e..febc472d 100644 --- a/apps/roles/role_init/tasks/main.yml +++ b/apps/roles/role_init/tasks/main.yml @@ -26,14 +26,3 @@ service: name: init-apps enabled: yes - -- block: - - name: Check init, if /credentials/* file not exist or no content, stop and exit Ansible - shell: | - [ -s /credentials/password.txt ] && [ -s /credentials/init.sh ] && init_initpasswd=true || init_initpasswd=false - echo $init_initpasswd - register: init_check - - - name: Output error when init.sh fail - fail: msg="init role is not done,exit!" - when: init_check.stdout == "false"