Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webservices
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
webservices
Commits
2f045fc7
Commit
2f045fc7
authored
Sep 11, 2019
by
Lars Beckers
Browse files
Options
Downloads
Patches
Plain Diff
static-website: fix linter issues
parent
1e1d55f2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
static-website/tasks/main.yml
+7
-13
7 additions, 13 deletions
static-website/tasks/main.yml
with
7 additions
and
13 deletions
static-website/tasks/main.yml
+
7
−
13
View file @
2f045fc7
...
...
@@ -6,35 +6,29 @@
dest
:
"
/root/.ssh/{{
item.deploy_key_name
}}"
owner
:
root
group
:
root
mode
:
0600
mode
:
'
0600
'
when
:
-
item.deploy_key is defined
-
item.deploy_key
!= ''
-
item.deploy_key
|bool
-
item.deploy_key_name is defined
-
item.deploy_key_name
!= ''
-
item.deploy_key_name
|bool
with_items
:
"
{{
static_websites
}}"
tags
:
-
static-website
# https://github.com/ansible/ansible/issues/27699
-
name
:
ensure git module is able to clone
command
:
mount -o remount,exec /tmp
tags
:
-
static-website
# https://github.com/ansible/ansible/issues/30064#issuecomment-487149251
-
name
:
ensure we have up-to-date websites
git
:
repo
:
"
{{
item.git_url
}}"
dest
:
"
{{
item.path
}}"
# yamllint disable-line rule:line-length
key_file
:
"
/root/.ssh/{{
item.deploy_key_name|default(None,
true)
or
omit
}}"
version
:
"
{{
item.git_version|default('HEAD')
}}"
umask
:
"
{{
item.umask|default('022')
}}"
with_items
:
"
{{
static_websites
}}"
tags
:
-
static-website
-
name
:
ensure git module is not able to clone anymore
command
:
mount -o remount,noexec /tmp
environment
:
TMPDIR
:
/root/.ansible/tmp
tags
:
-
static-website
...
...
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