ip check update
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
start_ip="10.10.43.100"
|
||||
end_ip="10.10.43.253"
|
||||
|
||||
echo "마지막 수행 시간 : $(date +%Y-%m-%d-%r)\n" > README.md
|
||||
echo "마지막 수행 시간 : $(date +%Y-%m-%d-%r)<br>" > README.md
|
||||
echo "|주소|사용 여부|" >> README.md
|
||||
echo "|---|---|" >> README.md
|
||||
echo "|------|------|" >> README.md
|
||||
|
||||
for ((i=${start_ip##*.}; i<=${end_ip##*.}; i++)); do
|
||||
ip="${start_ip%.*}.${i}"
|
||||
|
||||
@@ -2,3 +2,12 @@
|
||||
- name: ipcheck shell start
|
||||
shell: sh {{ role_path }}/files/ipcheck.sh
|
||||
#when: inventory_hostname == group['bastion'][0]
|
||||
|
||||
- name: git add
|
||||
shell: git add .
|
||||
|
||||
- name: git commit
|
||||
shell: git commit -m "ip check update"
|
||||
|
||||
- name: git push
|
||||
shell: git push -u origin main
|
||||
|
||||
Reference in New Issue
Block a user