Skip to content

Commit

Permalink
Make the apt package state configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
infothrill committed Sep 17, 2016
1 parent 5f182cc commit 60d0f80
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ None

#### Variables

- `fail2ban_install_state`: [default: `latest`]: apt state of fail2ban package (latest, present)
- `fail2ban_loglevel`: [default: `INFO`]: Sets the loglevel output (CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG)
- `fail2ban_logtarget`: [default: `/var/log/fail2ban.log`]: Sets the log target. This could be a file, SYSLOG, STDERR or STDOUT
- `fail2ban_syslog_target`: [default: `/var/log/fail2ban.log`]:
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# defaults file for fail2ban
---
fail2ban_install_state: latest
fail2ban_loglevel: INFO
fail2ban_logtarget: /var/log/fail2ban.log
fail2ban_syslog_target: /var/log/fail2ban.log
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- name: install
apt:
name: "{{ item }}"
state: present
state: "{{ fail2ban_install_state }}"
update_cache: true
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
with_items: "{{ fail2ban_dependencies }}"
Expand Down

0 comments on commit 60d0f80

Please sign in to comment.