From 7e8f4317f95d4f36a3f72df554f3f827d0dd4e7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B3=80=EC=A0=95=ED=9B=88?= Date: Fri, 30 Jun 2023 12:59:24 +0900 Subject: [PATCH] first commit --- roles/ipcheck/tasks/main.yml | 50 +++++++++--------------------------- 1 file changed, 12 insertions(+), 38 deletions(-) diff --git a/roles/ipcheck/tasks/main.yml b/roles/ipcheck/tasks/main.yml index 47576cf..cacfa35 100644 --- a/roles/ipcheck/tasks/main.yml +++ b/roles/ipcheck/tasks/main.yml @@ -1,41 +1,15 @@ --- -- name: ipcheck shell start - shell: sh {{ role_path }}/files/ipcheck.sh - args: - chdir: /runner/project +- name: git clone dir create + file: + path: /home/jh + state: directory -- name: git config - shell: git config --global user.email "sa_8001@ex-em.com" +- name: git clone ipcheck.sh + git: + repo: https://github.com/ByeonJungHun/IP-Check-List.git + dest: /home/jh + single_branch: yes + version: main -- name: git config - shell: git config --global user.name "sa8001" - -- name: git init - shell: git init - args: - chdir: /runner/project - -- name: git add - shell: git add . - args: - chdir: /runner/project - -- name: git commit - shell: git commit -m "ip check update" - args: - chdir: /runner/project - -#- name: git branch -# shell: git branch -M main -# args: -# chdir: /runner/project - -#- name: git remote add -# shell: git remote add origin https://github.com/ByeonJungHun/ipcheck.git -# args: -# chdir: /runner/project - -- name: git push - shell: git push -u origin main - args: - chdir: /runner/project +#- name: ipcheck shell start +# shell: sh {{ role_path }}/files/ipcheck.sh