From 49276bf34cdcbf7b9260d589f1f96f2cba694019 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 11:55:52 +0900 Subject: [PATCH] ansible patch --- roles/ipcheck/tasks/main.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/roles/ipcheck/tasks/main.yml b/roles/ipcheck/tasks/main.yml index e27a5c0..ae9cf12 100644 --- a/roles/ipcheck/tasks/main.yml +++ b/roles/ipcheck/tasks/main.yml @@ -1,16 +1,25 @@ --- - name: ipcheck shell start shell: sh {{ role_path }}/files/ipcheck.sh - #when: inventory_hostname == group['bastion'][0] + args: + chdir: /runner/project -- name: git remote add - shell: git remote add origin https://github.com/ByeonJungHun/ipcheck.git +#- name: git remote add +# shell: git remote add origin https://github.com/ByeonJungHun/ipcheck.git +# 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 push shell: git push -u origin main + args: + chdir: /runner/project