ansible patch

This commit is contained in:
변정훈
2023-06-30 11:55:52 +09:00
parent a4f0474fd7
commit 49276bf34c

View File

@@ -1,16 +1,25 @@
--- ---
- name: ipcheck shell start - name: ipcheck shell start
shell: sh {{ role_path }}/files/ipcheck.sh shell: sh {{ role_path }}/files/ipcheck.sh
#when: inventory_hostname == group['bastion'][0] args:
chdir: /runner/project
- name: git remote add #- name: git remote add
shell: git remote add origin https://github.com/ByeonJungHun/ipcheck.git # shell: git remote add origin https://github.com/ByeonJungHun/ipcheck.git
# args:
# chdir: /runner/project
- name: git add - name: git add
shell: git add . shell: git add .
args:
chdir: /runner/project
- name: git commit - name: git commit
shell: git commit -m "ip check update" shell: git commit -m "ip check update"
args:
chdir: /runner/project
- name: git push - name: git push
shell: git push -u origin main shell: git push -u origin main
args:
chdir: /runner/project