Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
ad0a136a
Unverified
Commit
ad0a136a
authored
Jun 19, 2016
by
arbabnazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the file/template mode while using with_items
parent
27512714
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
14 deletions
+14
-14
playbooks/roles/aws/tasks/main.yml
+1
-1
playbooks/roles/edx_ansible/tasks/deploy.yml
+1
-1
playbooks/roles/edxapp/tasks/main.yml
+1
-1
playbooks/roles/edxapp/tasks/service_variant_config.yml
+1
-1
playbooks/roles/flower/tasks/main.yml
+1
-1
playbooks/roles/nginx/tasks/main.yml
+5
-5
playbooks/roles/user/tasks/main.yml
+4
-4
No files found.
playbooks/roles/aws/tasks/main.yml
View file @
ad0a136a
...
...
@@ -108,7 +108,7 @@
-
name
:
Update the ssh motd on Ubuntu
file
:
path
:
"
{{
item
}}"
mode
:
0644
mode
:
"
0644"
when
:
(vagrant_home_dir.stat.exists ==
false
) and (ansible_distribution in common_debian_variants)
with_items
:
-
"
/etc/update-motd.d/10-help-text"
...
...
playbooks/roles/edx_ansible/tasks/deploy.yml
View file @
ad0a136a
...
...
@@ -28,7 +28,7 @@
src
:
"
{{
item.src
}}"
owner
:
"
{{
edx_ansible_user
}}"
group
:
"
{{
edx_ansible_user
}}"
mode
:
755
mode
:
"
0755"
with_items
:
-
{
src
:
'
update.j2'
,
dest
:
'
update'
}
-
{
src
:
'
show-repo-heads.j2'
,
dest
:
'
show-repo-heads'
}
...
...
playbooks/roles/edxapp/tasks/main.yml
View file @
ad0a136a
...
...
@@ -111,7 +111,7 @@
state
:
directory
owner
:
"
{{
common_log_user
}}"
group
:
"
{{
common_log_user
}}"
mode
:
0750
mode
:
"
0750"
with_items
:
"
{{
service_variants_enabled
}}"
tags
:
-
install
...
...
playbooks/roles/edxapp/tasks/service_variant_config.yml
View file @
ad0a136a
...
...
@@ -137,7 +137,7 @@
state
:
"
{{
item
}}"
owner
:
"
{{
edxapp_user
}}"
group
:
"
{{
common_web_group
}}"
mode
:
0755
mode
:
"
0755"
when
:
celery_worker is not defined and not devstack
with_items
:
[
'
absent'
,
'
directory'
]
tags
:
...
...
playbooks/roles/flower/tasks/main.yml
View file @
ad0a136a
...
...
@@ -28,7 +28,7 @@
dest
:
"
{{
item.dest
}}"
owner
:
"
{{
FLOWER_USER
}}"
group
:
"
{{
common_web_group
}}"
mode
:
0640
mode
:
"
0640"
notify
:
-
restart flower
with_items
:
...
...
playbooks/roles/nginx/tasks/main.yml
View file @
ad0a136a
...
...
@@ -113,7 +113,7 @@
dest
:
"
{{
nginx_sites_available_dir
}}/{{
item
}}"
owner
:
root
group
:
"
{{
common_web_user
}}"
mode
:
0640
mode
:
"
0640"
with_items
:
"
{{
nginx_sites
}}"
notify
:
reload nginx
tags
:
...
...
@@ -139,7 +139,7 @@
dest
:
"
{{
nginx_sites_available_dir
}}/{{
(item
|
basename).rstrip('.j2')
}}"
owner
:
root
group
:
"
{{
common_web_user
}}"
mode
:
0640
mode
:
"
0640"
with_items
:
"
{{
nginx_extra_sites
}}"
notify
:
reload nginx
tags
:
...
...
@@ -165,7 +165,7 @@
dest
:
"
{{
nginx_conf_dir
}}/{{
(item
|
basename).rstrip('.j2')
}}"
owner
:
root
group
:
"
{{
common_web_user
}}"
mode
:
0640
mode
:
"
0640"
with_items
:
"
{{
nginx_extra_configs
}}"
notify
:
reload nginx
tags
:
...
...
@@ -178,7 +178,7 @@
dest
:
"
{{
nginx_sites_available_dir
}}/{{
item.key
}}"
owner
:
root
group
:
"
{{
common_web_user
}}"
mode
:
0640
mode
:
"
0640"
with_dict
:
"
{{
nginx_redirects
}}"
notify
:
reload nginx
tags
:
...
...
@@ -207,7 +207,7 @@
dest
:
"
{{
nginx_server_static_dir
}}/{{
item.file
}}"
owner
:
root
group
:
"
{{
common_web_user
}}"
mode
:
0640
mode
:
"
0640"
with_items
:
"
{{
NGINX_SERVER_HTML_FILES
}}"
tags
:
-
install
...
...
playbooks/roles/user/tasks/main.yml
View file @
ad0a136a
...
...
@@ -124,7 +124,7 @@
template
:
src
:
default.bashrc.j2
dest
:
"
/home/{{
item.name
}}/.bashrc"
mode
:
0640
mode
:
"
0640"
owner
:
"
{{
item.name
}}"
when
:
not (item.type is defined and item.type == 'restricted') and item.get('state', 'present') == 'present'
with_items
:
"
{{
user_info
}}"
...
...
@@ -133,7 +133,7 @@
template
:
src
:
default.profile.j2
dest
:
"
/home/{{
item.name
}}/.profile"
mode
:
0640
mode
:
"
0640"
owner
:
"
{{
item.name
}}"
when
:
item.get('state', 'present') == 'present'
with_items
:
"
{{
user_info
}}"
...
...
@@ -152,7 +152,7 @@
template
:
src
:
restricted.bashrc.j2
dest
:
"
/home/{{
item.name
}}/.bashrc"
mode
:
0640
mode
:
"
0640"
owner
:
"
{{
item.name
}}"
when
:
item.type is defined and item.type == 'restricted' and item.get('state', 'present') == 'present'
with_items
:
"
{{
user_info
}}"
...
...
@@ -178,7 +178,7 @@
file
:
path
:
"
/home/{{
item.name
}}/bin"
state
:
directory
mode
:
0750
mode
:
"
0750"
owner
:
root
group
:
"
{{
item.name
}}"
when
:
item.type is defined and item.type == 'restricted' and item.get('state', 'present') == 'present'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment