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