Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
fail2ban
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
webarch
fail2ban
Commits
35b49d22
Commit
35b49d22
authored
5 years ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
use ansible_distribution_release
parent
6eddb79d
No related branches found
No related tags found
No related merge requests found
Pipeline
#9959
passed
5 years ago
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/main.yml
+2
-16
2 additions, 16 deletions
tasks/main.yml
tasks/stretch.yml
+0
-1
0 additions, 1 deletion
tasks/stretch.yml
with
2 additions
and
17 deletions
tasks/main.yml
+
2
−
16
View file @
35b49d22
---
-
name
:
Check /etc/debian_version
shell
:
"
lsb_release
-c
|
awk
'{
print
$2
}'"
register
:
fail2ban_debian_version_check
check_mode
:
false
changed_when
:
false
tags
:
-
fail2ban
-
name
:
Set a fact for the Debian version
set_fact
:
fail2ban_debian_version
:
"
{{
fail2ban_debian_version_check.stdout
}}"
tags
:
-
fail2ban
-
name
:
Include tasks for Debian Stretch
include_tasks
:
stretch.yml
when
:
fail2ban_debian_version
== "stretch"
when
:
ansible_distribution_release
== "stretch"
tags
:
-
fail2ban
...
...
@@ -66,7 +52,7 @@
tags
:
-
fail2ban
when
:
fail2ban_debian_version
== "buster"
when
:
ansible_distribution_release
== "buster"
-
name
:
fail2ban restarted
service
:
...
...
This diff is collapsed.
Click to expand it.
tasks/stretch.yml
+
0
−
1
View file @
35b49d22
...
...
@@ -7,7 +7,6 @@
-
whois
-
python3-pyinotify
-
fail2ban
when
:
fail2ban_debian_version == "stretch"
tags
:
-
fail2ban
...
...
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