Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kubernetes-infra-example
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cloud
kubernetes
kubernetes-infra-example
Commits
2a0e3b16
Commit
2a0e3b16
authored
5 months ago
by
Ing. Klára Moravcová
Browse files
Options
Downloads
Patches
Plain Diff
Add apt update for haproxy role.
parent
02a72adc
No related branches found
Branches containing commit
Tags
v3.0.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/01-playbook/roles/haproxy/tasks/main.yaml
+11
-1
11 additions, 1 deletion
ansible/01-playbook/roles/haproxy/tasks/main.yaml
with
11 additions
and
1 deletion
ansible/01-playbook/roles/haproxy/tasks/main.yaml
+
11
−
1
View file @
2a0e3b16
---
-
name
:
Update and upgrade apt packages
become
:
true
apt
:
upgrade
:
yes
update_cache
:
yes
cache_valid_time
:
86400
#One day
-
name
:
Ensure HAProxy is installed.
package
:
name=haproxy state=present
ansible.builtin.apt
:
update_cache
:
true
name
:
haproxy
state
:
present
-
name
:
Ensure HAProxy is enabled (so init script will start it on Debian).
lineinfile
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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