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
6c954df6
Commit
6c954df6
authored
6 years ago
by
Atoms
Browse files
Options
Downloads
Patches
Plain Diff
move when condition to main.yml
parent
7b8359df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/download/tasks/main.yml
+1
-0
1 addition, 0 deletions
roles/download/tasks/main.yml
roles/download/tasks/sync_container.yml
+2
-10
2 additions, 10 deletions
roles/download/tasks/sync_container.yml
with
3 additions
and
10 deletions
roles/download/tasks/main.yml
+
1
−
0
View file @
6c954df6
...
...
@@ -22,3 +22,4 @@
-
item.value.enabled
-
item.value.container
-
download_run_once
-
group_names | intersect(download.groups) | length
This diff is collapsed.
Click to expand it.
roles/download/tasks/sync_container.yml
+
2
−
10
View file @
6c954df6
...
...
@@ -7,7 +7,6 @@
when
:
-
download.enabled
-
download.container
-
group_names | intersect(download.groups) | length
tags
:
-
facts
...
...
@@ -18,7 +17,7 @@
-
download.enabled
-
download.container
-
download_run_once
-
group_names | intersect(download.groups) | length
tags
:
-
facts
...
...
@@ -29,7 +28,6 @@
-
download.enabled
-
download.container
-
download_run_once
-
group_names | intersect(download.groups) | length
-
name
:
"
container_download
|
Update
the
'container_changed'
fact"
set_fact
:
...
...
@@ -39,14 +37,13 @@
-
download.container
-
download_run_once
-
pull_required|default(download_always_pull)
-
group_names | intersect(download.groups) | length
run_once
:
"
{{
download_run_once
}}"
tags
:
-
facts
-
name
:
container_download | Stat saved container image
stat
:
path
:
"
{{fname}}"
path
:
"
{{
fname
}}"
register
:
img
changed_when
:
false
delegate_to
:
"
{{
download_delegate
}}"
...
...
@@ -57,7 +54,6 @@
-
download.enabled
-
download.container
-
download_run_once
-
group_names | intersect(download.groups) | length
tags
:
-
facts
...
...
@@ -73,7 +69,6 @@
-
download_run_once
-
(ansible_os_family not in ["CoreOS", "Container Linux by CoreOS"] or download_delegate == "localhost")
-
(container_changed or not img.stat.exists)
-
group_names | intersect(download.groups) | length
-
name
:
container_download | copy container images to ansible host
synchronize
:
...
...
@@ -93,7 +88,6 @@
-
inventory_hostname == download_delegate
-
download_delegate != "localhost"
-
saved.changed
-
group_names | intersect(download.groups) | length
-
name
:
container_download | upload container images to nodes
synchronize
:
...
...
@@ -115,7 +109,6 @@
-
(ansible_os_family not in ["CoreOS", "Container Linux by CoreOS"] and
inventory_hostname != download_delegate or
download_delegate == "localhost")
-
group_names | intersect(download.groups) | length
tags
:
-
upload
-
upgrade
...
...
@@ -128,7 +121,6 @@
-
download_run_once
-
(ansible_os_family not in ["CoreOS", "Container Linux by CoreOS"] and
inventory_hostname != download_delegate or download_delegate == "localhost")
-
group_names | intersect(download.groups) | length
tags
:
-
upload
-
upgrade
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