Files
ipcheck_ansible/roles/ipcheck/tasks/main.yml
2023-06-30 13:56:59 +09:00

27 lines
518 B
YAML

---
- name: git clone dir create
file:
path: /home/jh
state: directory
- name: git clone ipcheck.sh
git:
repo: https://{{ user }}:{{ token }}@github.com/ByeonJungHun/IP-Check-List.git
dest: /home/jh
single_branch: yes
version: main
- name: ipcheck shell start
shell: sh /home/jh/ipcheck.sh
args:
chdir: /home/jh
- name: git add task
shell: git add .
- name: git commit task
shell: git commit -m "IP Check List Update"
- name: git push task
shell: git push -u origin main