Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
haproxy
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
haproxy
Commits
9904f73f
Commit
9904f73f
authored
7 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-playbooks/general#72 Always use import_tasks or include_tasks instead of just include
parent
05b6d41f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/main.yml
+6
-6
6 additions, 6 deletions
tasks/main.yml
tasks/proxypool.yml
+18
-17
18 additions, 17 deletions
tasks/proxypool.yml
with
24 additions
and
23 deletions
tasks/main.yml
+
6
−
6
View file @
9904f73f
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
-
block
:
-
block
:
-
i
nclude
:
install.yml
-
i
mport_tasks
:
install.yml
-
i
nclude
:
configure.yml
-
i
mport_tasks
:
configure.yml
tags
:
'
Config'
tags
:
'
Config'
when
:
'
"haproxy"
not
in
excluded_roles'
when
:
'
"haproxy"
not
in
excluded_roles'
...
@@ -16,20 +16,20 @@
...
@@ -16,20 +16,20 @@
-
block
:
-
block
:
-
name
:
"
Install
Certs"
-
name
:
"
Install
Certs"
include
:
'
../../letsencrypt/tasks/cert.yml'
include
_tasks
:
'
../../letsencrypt/tasks/cert.yml'
with_items
:
'
{{
proxy_certificates|default([])
}}'
with_items
:
'
{{
proxy_certificates|default([])
}}'
loop_control
:
loop_control
:
loop_var
:
domain
loop_var
:
domain
when
:
domain.letsencrypt|default(false) and domain.active|default(true)
when
:
domain.letsencrypt|default(false) and domain.active|default(true)
-
name
:
"
Renew
Existing
Cert"
-
name
:
"
Renew
Existing
Cert"
i
nclude
:
'
../../letsencrypt/tasks/renew.yml'
i
mport_tasks
:
'
../../letsencrypt/tasks/renew.yml'
-
name
:
"
Build
HaProxy
Certs"
-
name
:
"
Build
HaProxy
Certs"
i
nclude
:
'
buildcerts.yml'
i
mport_tasks
:
'
buildcerts.yml'
tags
:
'
Certs'
tags
:
'
Certs'
when
:
'
proxy_active
and
"letsencrypt"
not
in
excluded_roles'
when
:
'
proxy_active
and
"letsencrypt"
not
in
excluded_roles'
-
i
nclude
_tasks
:
'
proxypool.yml'
-
i
mport
_tasks
:
'
proxypool.yml'
tags
:
'
Certs'
tags
:
'
Certs'
This diff is collapsed.
Click to expand it.
tasks/proxypool.yml
+
18
−
17
View file @
9904f73f
---
---
# file: roles/haproxy/tasks/proxypool.yml
# file: roles/haproxy/tasks/proxypool.yml
-
name
:
"
Set
directory
permissions
to
current
user"
-
block
:
file
:
path
:
'
/etc/letsencrypt'
owner
:
'
{{
ansible_env.SUDO_USER
}}'
recurse
:
yes
tags
:
'
Certs'
when
:
'
proxy_active
is
defined
and
proxy_active
and
"letsencrypt"
not
in
excluded_roles'
-
name
:
"
Pull
Certs
from
active
Proxy"
-
name
:
"
Set
directory
permissions
to
current
user"
include
:
'
pullcerts.yml'
file
:
tags
:
'
Certs'
path
:
'
/etc/letsencrypt'
when
:
'
proxy_active
is
defined
and
not
proxy_active
and
"letsencrypt"
not
in
excluded_roles'
owner
:
'
{{
ansible_env.SUDO_USER
}}'
recurse
:
yes
when
:
'
proxy_active
is
defined
and
proxy_active
and
"letsencrypt"
not
in
excluded_roles'
-
name
:
"
Pull
Certs
from
active
Proxy"
import_tasks
:
'
pullcerts.yml'
when
:
'
proxy_active
is
defined
and
not
proxy_active
and
"letsencrypt"
not
in
excluded_roles'
-
name
:
"
Set
directory
permissions
to
root"
file
:
path
:
'
/etc/letsencrypt'
owner
:
'
root'
recurse
:
yes
when
:
'
proxy_active
is
defined
and
proxy_active
and
"letsencrypt"
not
in
excluded_roles'
-
name
:
"
Set
directory
permissions
to
root"
file
:
path
:
'
/etc/letsencrypt'
owner
:
'
root'
recurse
:
yes
tags
:
'
Certs'
tags
:
'
Certs'
when
:
'
proxy_active
is
defined
and
proxy_active
and
"letsencrypt"
not
in
excluded_roles'
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