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
ec7c9881
Commit
ec7c9881
authored
Aug 11, 2015
by
Feanil Patel
Committed by
Ben Patterson
Nov 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make common install the latest version of python.
parent
c58cbb30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
playbooks/roles/common/defaults/main.yml
+2
-1
playbooks/roles/common/tasks/main.yml
+7
-3
No files found.
playbooks/roles/common/defaults/main.yml
View file @
ec7c9881
...
@@ -86,7 +86,7 @@ common_debian_pkgs:
...
@@ -86,7 +86,7 @@ common_debian_pkgs:
-
tree
-
tree
-
git
-
git
-
unzip
-
unzip
-
python2.7
-
"
python2.7=2.7.10-0+precise1"
-
python-pip
-
python-pip
-
python2.7-dev
-
python2.7-dev
# Not installed by default on vagrant ubuntu
# Not installed by default on vagrant ubuntu
...
@@ -104,6 +104,7 @@ common_web_group: www-data
...
@@ -104,6 +104,7 @@ common_web_group: www-data
common_log_user
:
syslog
common_log_user
:
syslog
common_git_ppa
:
"
ppa:git-core/ppa"
common_git_ppa
:
"
ppa:git-core/ppa"
common_python_ppa
:
"
ppa:fkrull/deadsnakes-python2.7"
# Skip supervisor tasks
# Skip supervisor tasks
# When set to true this flag will allow you to install everything but keep
# When set to true this flag will allow you to install everything but keep
...
...
playbooks/roles/common/tasks/main.yml
View file @
ec7c9881
...
@@ -31,11 +31,16 @@
...
@@ -31,11 +31,16 @@
-
name
:
Add git apt repository
-
name
:
Add git apt repository
apt_repository
:
repo="{{ common_git_ppa }}"
apt_repository
:
repo="{{ common_git_ppa }}"
# Ensure that we get the latest version of python 2.7
-
name
:
Add python 2.7 apt repository
apt_repository
:
repo="{{ common_python_ppa }}"
-
name
:
Install role-independent useful system packages
-
name
:
Install role-independent useful system packages
# do this before log dir setup; rsyslog package guarantees syslog user present
# do this before log dir setup; rsyslog package guarantees syslog user present
apt
:
>
apt
:
>
pkg=
{{','.join(common_debian_pkgs)}}
install_recommends=yes
pkg=
"{{ item }}"
install_recommends=yes
state=present update_cache=yes
state=present update_cache=yes
with_items
:
common_debian_pkgs
-
name
:
Create common log directory
-
name
:
Create common log directory
file
:
>
file
:
>
...
@@ -118,4 +123,4 @@
...
@@ -118,4 +123,4 @@
dest=/etc/ssh/sshd_config
dest=/etc/ssh/sshd_config
src=sshd_config.j2 mode=0644 owner=root group=root
src=sshd_config.j2 mode=0644 owner=root group=root
notify
:
restart ssh
notify
:
restart ssh
\ No newline at end of file
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