diff --git a/roles/security_check/tasks/create_readme.yml b/roles/security_check/tasks/create_readme.yml index 0800ba3..186d324 100644 --- a/roles/security_check/tasks/create_readme.yml +++ b/roles/security_check/tasks/create_readme.yml @@ -36,11 +36,12 @@ ls -al git config --global user.email "sa_8001@ex-em.com" git config --global user.name "ByeonJungHun" - git remote remove origin - git remote add origin https://{{ git_user }}:{{ git_key }}@github.com/CloudMOA/security_check.git + git clone https://{{ git_user }}:{{ git_key }}@github.com/CloudMOA/security_check.git /runner/security_check + cp ./README.md /runner/security_check/README.md + cd /runner/security_check git add . git commit -m "검사 결과 업데이트" - git push -u origin main + git push delegate_to: 127.0.0.1 when: "'nas' in group_names"