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
59dca4a7
Commit
59dca4a7
authored
Nov 20, 2015
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2500 from cpennington/edx_ansible-lifecycle-tags
Tag edx_ansible with the appropriate lifecycle tags
parents
f4654f4c
56faf1e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
playbooks/roles/edx_ansible/tasks/deploy.yml
+12
-0
playbooks/roles/edx_ansible/tasks/main.yml
+6
-0
playbooks/roles/nginx/tasks/main.yml
+4
-0
No files found.
playbooks/roles/edx_ansible/tasks/deploy.yml
View file @
59dca4a7
...
...
@@ -4,6 +4,8 @@
dest={{ edx_ansible_code_dir }} repo={{ edx_ansible_source_repo }} version={{ configuration_version }}
accept_hostkey=yes
sudo_user
:
"
{{
edx_ansible_user
}}"
tags
:
-
install:code
-
name
:
install edx_ansible venv requirements
pip
:
>
...
...
@@ -11,26 +13,36 @@
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }}"
sudo_user
:
"
{{
edx_ansible_user
}}"
with_items
:
"
{{
edx_ansible_requirements_files
}}"
tags
:
-
install:app-requirements
-
name
:
create update script
template
:
>
dest={{ edx_ansible_app_dir}}/update
src=update.j2 owner={{ edx_ansible_user }} group={{ edx_ansible_user }} mode=755
tags
:
-
install:configuration
-
name
:
create a symlink for update.sh
file
:
>
src={{ edx_ansible_app_dir }}/update
dest={{ COMMON_BIN_DIR }}/update
state=link
tags
:
-
install:configuration
-
name
:
create a symlink for ansible-playbook
file
:
>
src={{ edx_ansible_venv_bin }}/ansible-playbook
dest={{ COMMON_BIN_DIR }}/ansible-playbook
state=link
tags
:
-
install:configuration
-
name
:
create a symlink for the playbooks dir
file
:
>
src={{ edx_ansible_code_dir }}/playbooks
dest={{ COMMON_CFG_DIR }}/playbooks
state=link
tags
:
-
install:configuration
playbooks/roles/edx_ansible/tasks/main.yml
View file @
59dca4a7
...
...
@@ -29,6 +29,8 @@
home="{{ edx_ansible_app_dir }}"
createhome=no
shell=/bin/false
tags
:
-
install:base
-
name
:
create edx_ansible app and venv dir
file
:
>
...
...
@@ -40,8 +42,12 @@
-
"
{{
edx_ansible_app_dir
}}"
-
"
{{
edx_ansible_data_dir
}}"
-
"
{{
edx_ansible_venvs_dir
}}"
tags
:
-
install:base
-
name
:
install a bunch of system packages on which edx_ansible relies
apt
:
pkg={{','.join(edx_ansible_debian_pkgs)}} state=present
tags
:
-
install:system-requirements
-
include
:
deploy.yml tags=deploy
playbooks/roles/nginx/tasks/main.yml
View file @
59dca4a7
...
...
@@ -195,3 +195,7 @@
# any reason, this will ensure that it is started up again.
-
name
:
make sure nginx has started
service
:
name=nginx state=started
tags
:
-
manage
-
manage:start
-
manage:devstack
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