Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
99b8f090
Unverified
Commit
99b8f090
authored
4 years ago
by
Hans Feldt
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
crio: ensure service is started and enabled (#6753)
parent
6a4d322a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/container-engine/cri-o/tasks/main.yaml
+16
-4
16 additions, 4 deletions
roles/container-engine/cri-o/tasks/main.yaml
with
16 additions
and
4 deletions
roles/container-engine/cri-o/tasks/main.yaml
+
16
−
4
View file @
99b8f090
---
-
name
:
check if fedora coreos
stat
:
path
:
/run/ostree-booted
...
...
@@ -9,7 +8,6 @@
set_fact
:
is_ostree
:
"
{{
ostree.stat.exists
}}"
-
name
:
gather os specific variables
include_vars
:
"
{{
item
}}"
with_first_found
:
...
...
@@ -46,7 +44,6 @@
state
:
present
when
:
not is_ostree
with_items
:
"
{{
crio_packages
}}"
notify
:
restart crio
register
:
package_install
until
:
package_install is succeeded
retries
:
4
...
...
@@ -99,6 +96,7 @@
template
:
src
:
crio.conf.j2
dest
:
/etc/crio/crio.conf
notify
:
restart crio
-
name
:
Copy mounts.conf
copy
:
...
...
@@ -125,10 +123,24 @@
-
ansible_distribution == "CentOS"
-
ansible_distribution_major_version == "7"
-
name
:
Write cri-o proxy drop-in
template
:
src
:
http-proxy.conf.j2
dest
:
/etc/systemd/system/crio.service.d/http-proxy.conf
notify
:
restart crio
when
:
http_proxy is defined or https_proxy is defined
-
name
:
Ensure crio service is started and enabled
service
:
name
:
crio
daemon_reload
:
true
enabled
:
true
state
:
started
-
name
:
Verify that crio is running
command
:
"
crio-status
info"
register
:
get_crio_info
until
:
get_crio_info is succeeded
changed_when
:
false
retries
:
5
delay
:
"
{{
retry_stagger
|
random
+
3
}}"
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