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
e7d5b7af
Commit
e7d5b7af
authored
9 years ago
by
Greg Althaus
Browse files
Options
Downloads
Patches
Plain Diff
Force owner and permissions for get_url retrieved
files. get_url doesn't honor owner and mode is spotty.
parent
359e55f6
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/download/tasks/main.yml
+12
-3
12 additions, 3 deletions
roles/download/tasks/main.yml
with
12 additions
and
3 deletions
roles/download/tasks/main.yml
+
12
−
3
View file @
e7d5b7af
...
@@ -14,8 +14,17 @@
...
@@ -14,8 +14,17 @@
-
name
:
Extract archives
-
name
:
Extract archives
unarchive
:
unarchive
:
src
:
"
{{
local_release_dir
}}/{{item.dest}}"
src
:
"
{{
local_release_dir
}}/{{item.dest}}"
dest
:
"
{{
local_release_dir
}}/{{item.dest|dirname}}"
dest
:
"
{{
local_release_dir
}}/{{item.dest|dirname}}"
copy
:
no
copy
:
no
when
:
"
{{item.unarchive
is
defined
and
item.unarchive
==
True}}"
when
:
"
{{item.unarchive
is
defined
and
item.unarchive
==
True}}"
with_items
:
downloads
with_items
:
downloads
-
name
:
Fix permissions
file
:
state
:
file
path
:
"
{{local_release_dir}}/{{item.dest}}"
owner
:
"
{{
item.owner|default(omit)
}}"
mode
:
"
{{
item.mode|default(omit)
}}"
when
:
"
{{item.unarchive
is
not
defined
or
item.unarchive
==
False}}"
with_items
:
downloads
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