Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 1.23 KB

README.md

File metadata and controls

71 lines (50 loc) · 1.23 KB

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