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
56b46082
Commit
56b46082
authored
7 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-roles/haproxy#8 Sync proxy pool when certs got renewed
parent
c0e9ed1a
No related branches found
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
tasks/main.yml
+2
-24
2 additions, 24 deletions
tasks/main.yml
tasks/proxypool.yml
+23
-0
23 additions, 0 deletions
tasks/proxypool.yml
with
25 additions
and
24 deletions
tasks/main.yml
+
2
−
24
View file @
56b46082
...
...
@@ -25,32 +25,10 @@
-
name
:
"
Renew
Existing
Cert"
include
:
'
../../letsencrypt/tasks/renew.yml'
-
name
:
"
Build
HaCerts"
-
name
:
"
Build
Ha
Proxy
Certs"
include
:
'
buildcerts.yml'
-
name
:
"
Set
directory
permissions
to
current
user"
file
:
path
:
'
/etc/letsencrypt'
owner
:
'
{{
ansible_env.SUDO_USER
}}'
recurse
:
yes
tags
:
'
Certs'
when
:
proxy_active
tags
:
'
Certs'
when
:
'
proxy_active
and
"letsencrypt"
not
in
excluded_roles'
-
block
:
-
name
:
"
Pull
Certs
from
active
Proxy"
include
:
'
pullcerts.yml'
tags
:
'
Certs'
when
:
'
not
proxy_active
and
"letsencrypt"
not
in
excluded_roles'
-
name
:
"
Set
directory
permissions
to
root"
file
:
path
:
'
/etc/letsencrypt'
owner
:
'
root'
recurse
:
yes
tags
:
'
Certs'
when
:
'
proxy_active
and
"letsencrypt"
not
in
excluded_roles'
-
include_tasks
:
'
proxypool.yml'
This diff is collapsed.
Click to expand it.
tasks/proxypool.yml
0 → 100644
+
23
−
0
View file @
56b46082
---
# file: roles/haproxy/tasks/proxypool.yml
-
name
:
"
Set
directory
permissions
to
current
user"
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"
include
:
'
pullcerts.yml'
tags
:
'
Certs'
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
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