Skip to content

theqwan/ansible-role-fail2ban

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install fail2ban Build Status

安裝 fail2ban。

  • Ubuntu 14.04, 16.04
  • CentOS 6, 7

Requirements

  • ansible >= 2.3
  • python >= 2.6

Role Variables

以下四種 Variables 非必填項目,想要設定客製的 fail2ban config 才需要設置。

使用方式請參考範例。

  • custom_jail_conf
  • custom_filters
  • custom_actions
  • custom_jails

Dependencies

none.

Example Playbook

- name: install_fail2ban.yml
  hosts: myhost
  gather_facts: yes
  become: yes

  vars:
   - custom_jail_conf: /path/to/conf/filename

   - custom_filters::
       - src: /path/to/filters
         filename: filter_filename.conf
       - src: /path/to/filters
         filename: filter_filename.conf

   - custom_actions:
      - src: /path/to/actions
        filename: action_filename.conf
      - src: /path/to/actions
        filename: action_filename.conf

   - custom_jails:
      - src: /path/to/jails
        filename: jail_filename.conf
      - src: /path/to/jails
        filename: jail_filename.conf

  roles:
    - install_fail2ban

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published