Update main.yml

This commit is contained in:
qiaofeng1227 2022-07-11 15:19:42 +08:00 committed by GitHub
parent 5cf169bfd0
commit 5ef88f7bef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"