backup and restore blacklist file
This commit is contained in:
parent
7d5f86b045
commit
9993844f02
55
blacklist/vps-host/etc/sentinel/blacklist
Normal file
55
blacklist/vps-host/etc/sentinel/blacklist
Normal file
@ -0,0 +1,55 @@
|
||||
51.222.107.37
|
||||
45.33.110.22
|
||||
185.142.236.35
|
||||
164.92.135.200
|
||||
46.101.166.31
|
||||
195.181.163.29
|
||||
206.189.47.168
|
||||
103.74.54.128
|
||||
185.180.143.140
|
||||
146.0.77.38
|
||||
172.104.249.218
|
||||
137.184.200.131
|
||||
128.90.135.254
|
||||
134.209.70.98
|
||||
3.235.198.47
|
||||
71.6.199.23
|
||||
20.84.48.39
|
||||
193.42.33.15
|
||||
167.235.148.2
|
||||
54.74.107.180
|
||||
170.187.229.101
|
||||
165.227.89.199
|
||||
165.22.98.234
|
||||
34.122.37.133
|
||||
167.172.141.44
|
||||
167.172.142.119
|
||||
134.209.207.188
|
||||
34.125.93.26
|
||||
34.162.183.125
|
||||
139.59.138.104
|
||||
35.245.198.244
|
||||
143.198.85.144
|
||||
157.245.136.150
|
||||
185.134.23.83
|
||||
20.125.115.103
|
||||
185.163.109.66
|
||||
128.199.85.172
|
||||
148.153.45.238
|
||||
185.142.236.34
|
||||
45.13.227.172
|
||||
18.204.48.86
|
||||
34.106.22.184
|
||||
51.222.107.37
|
||||
106.75.176.55
|
||||
146.190.84.120
|
||||
143.198.213.67
|
||||
34.125.234.83
|
||||
43.130.152.82
|
||||
45.59.163.17
|
||||
172.94.9.227
|
||||
148.153.45.236
|
||||
68.183.183.237
|
||||
89.187.162.187
|
||||
206.189.38.98
|
||||
2.57.122.253
|
@ -11,7 +11,18 @@
|
||||
ansible_become_password: "{{ sudo_password }}"
|
||||
when: script is not defined
|
||||
|
||||
|
||||
- name: Copy blacklist
|
||||
copy:
|
||||
src: "{{ playbook_dir }}/blacklist/{{ inventory_hostname }}/etc/sentinel/blacklist"
|
||||
dest: /etc/sentinel/blacklist
|
||||
mode: "0644"
|
||||
when: script is not defined or script == "blacklist"
|
||||
ignore_errors: true
|
||||
vars:
|
||||
ansible_become: yes
|
||||
ansible_become_method: sudo
|
||||
ansible_become_password: "{{ sudo_password }}"
|
||||
tags: [ "restore" ]
|
||||
|
||||
- name: Deploy stats script
|
||||
import_tasks: stats.yml
|
||||
@ -21,7 +32,7 @@
|
||||
import_tasks: blacklist.yml
|
||||
when: script is not defined or script == "blacklist"
|
||||
|
||||
|
||||
- name: Configure supervision script
|
||||
import_tasks: supervision.yml
|
||||
when: script is not defined or script == "supervision"
|
||||
|
||||
|
@ -1,4 +1,9 @@
|
||||
|
||||
- name: Backup blacklist
|
||||
fetch:
|
||||
src: /etc/sentinel/blacklist
|
||||
dest: blacklist
|
||||
when: script is not defined or script == "blacklist"
|
||||
tags: [ "backup" ]
|
||||
|
||||
|
||||
- name: Deconfigure stats script
|
||||
|
Loading…
x
Reference in New Issue
Block a user