ip check update
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
마지막 수행 시간 : 2023-06-30-10:26:05 AM
|
||||
|
||||
마지막 수행 시간 : 2023-06-30-10:52:15 AM<br>
|
||||
|주소|사용 여부|
|
||||
|---|---|
|
||||
|------|------|
|
||||
|10.10.43.100|사용중|
|
||||
|10.10.43.101|사용중|
|
||||
|10.10.43.102|사용가능|
|
||||
|
||||
@@ -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