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
480bc76d
Commit
480bc76d
authored
7 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Sanitize some if statements in jinja2
parent
5555cc52
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tasks/configure.yml
+1
-1
1 addition, 1 deletion
tasks/configure.yml
templates/fail2ban_jail.local.jinja2
+2
-2
2 additions, 2 deletions
templates/fail2ban_jail.local.jinja2
templates/fail2ban_paths-overrides.local.jinja2
+0
-0
0 additions, 0 deletions
templates/fail2ban_paths-overrides.local.jinja2
with
3 additions
and
3 deletions
tasks/configure.yml
+
1
−
1
View file @
480bc76d
...
...
@@ -3,7 +3,7 @@
-
name
:
"
Configure
Fail2Ban"
template
:
src
:
'
fail2ban_{{
item
}}'
src
:
'
fail2ban_{{
item
}}
.jinja2
'
dest
:
'
/etc/fail2ban/{{
item
}}'
owner
:
'
root'
group
:
'
root'
...
...
This diff is collapsed.
Click to expand it.
templates/fail2ban_jail.local
→
templates/fail2ban_jail.local
.jinja2
+
2
−
2
View file @
480bc76d
[sshd]
enabled = true
{% if inventory_hostname in groups['webserver'] %}
{% if
'webserver' in groups and
inventory_hostname in groups['webserver'] %}
[apache-auth]
enabled = true
...
...
@@ -52,7 +52,7 @@ enabled = true
logpath = %(apache_access_log)s
%(apache_jail_access_log)s
{% endif %}
{% if inventory_hostname in groups['webserver-drupal'] %}
{% if
'webserver-drupal' in groups and
inventory_hostname in groups['webserver-drupal'] %}
[drupal-auth]
enabled = true
...
...
This diff is collapsed.
Click to expand it.
templates/fail2ban_paths-overrides.local
→
templates/fail2ban_paths-overrides.local
.jinja2
+
0
−
0
View file @
480bc76d
File moved
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