Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Fail2Ban
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
Fail2Ban
Commits
c40eeeb2
Commit
c40eeeb2
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Update to 0.10.4 and use Python3
parent
db5cde56
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
defaults/main.yml
+1
-1
1 addition, 1 deletion
defaults/main.yml
tasks/install.yml
+12
-12
12 additions, 12 deletions
tasks/install.yml
with
13 additions
and
13 deletions
defaults/main.yml
+
1
−
1
View file @
c40eeeb2
---
fail2ban_version
:
0.10.
2
fail2ban_version
:
0.10.
4
This diff is collapsed.
Click to expand it.
tasks/install.yml
+
12
−
12
View file @
c40eeeb2
...
...
@@ -2,7 +2,14 @@
# file: roles/fail2ban/tasks/install.yml
-
name
:
Download Archive
shell
:
'
wget
"https://github.com/fail2ban/fail2ban/archive/{{
fail2ban_version
}}.tar.gz"
-O
"/tmp/fail2ban.tar.gz"'
get_url
:
url
:
https://github.com/fail2ban/fail2ban/archive/{{ fail2ban_version }}.tar.gz
dest
:
/tmp/fail2ban.tar.gz
force
:
yes
owner
:
root
group
:
root
mode
:
0664
validate_certs
:
yes
when
:
fail2ban_local_archive is not defined
-
name
:
Copy Archive
...
...
@@ -12,24 +19,17 @@
remote_src
:
yes
when
:
fail2ban_local_archive is defined
# TODO: Enable when all hosts are on 16.04
# get_url:
# url: https://github.com/fail2ban/fail2ban/archive/{{ fail2ban_version }}.tar.gz
# dest: /tmp/fail2ban.tar.gz
# force: yes
# owner: root
# group: root
# mode: 0664
# validate_certs: yes
-
name
:
Extract archive
unarchive
:
src
:
/tmp/fail2ban.tar.gz
dest
:
/tmp
remote_src
:
yes
-
name
:
Fix for Python3
command
:
sed -i 's/xrange/range/g' /tmp/fail2ban-{{ fail2ban_version }}/fail2ban/__init__.py
-
name
:
Install
shell
:
python setup.py install
shell
:
python
3
setup.py install
args
:
chdir
:
/tmp/fail2ban-{{ fail2ban_version }}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment