Update 'local.yaml'
parent
b339f0ac67
commit
dfa5c32d2c
14
local.yaml
14
local.yaml
|
@ -9,19 +9,13 @@
|
||||||
|
|
||||||
- name: download allow file
|
- name: download allow file
|
||||||
get_url:
|
get_url:
|
||||||
url: https://git.aanetworks.org/ariel/playbook-base/src/branch/master/static_files/hosts.allow
|
url: https://git.aanetworks.org/ariel/playbook-base/raw/branch/master/static_files/hosts.allow
|
||||||
dest: /tmp/hosts.allow
|
dest: /etc/hosts.allow
|
||||||
- name: downlod deny file
|
- name: downlod deny file
|
||||||
get_url:
|
get_url:
|
||||||
url: https://git.aanetworks.org/ariel/playbook-base/src/branch/master/static_files/hosts.deny
|
url: https://git.aanetworks.org/ariel/playbook-base/raw/branch/master/static_files/hosts.deny
|
||||||
dest: /tmp/hosts.deny
|
dest: /etc/hosts.deny
|
||||||
|
|
||||||
|
|
||||||
- name: Hosts file Deny
|
|
||||||
copy: src=/tmp/hosts.deny dest=/etc/hosts.deny
|
|
||||||
- name: Hosts file Allow
|
|
||||||
copy: src=/tmp/hosts.allow dest=/etc/hosts.allow
|
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- name: start fail2ban
|
- name: start fail2ban
|
||||||
service: name=fail2ban state=started
|
service: name=fail2ban state=started
|
Loading…
Reference in New Issue