Commit ec7c9881 by Feanil Patel Committed by Ben Patterson

Make common install the latest version of python.

parent c58cbb30
...@@ -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
......
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment