Skip to content

Commit

Permalink
mr.roboto: update to python 3.6
Browse files Browse the repository at this point in the history
And no longer install supervisor as there is yet no stable release that
runs on python 3.6
  • Loading branch information
gforcada committed Jun 17, 2018
1 parent 82a4665 commit f1afb58
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions ansible/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@
name=nginx-extras
state=present

- name: Install supervisor
pip: name=supervisor

- name: Checkout mr.roboto
git:
repo=https://github.com/plone/mr.roboto.git
Expand All @@ -81,23 +78,13 @@
pip:
requirements=/srv/mr.roboto/requirements.txt
virtualenv=/srv/mr.roboto
virtualenv_command=/srv/python2.7.11/bin/virtualenv

- name: Run mr.roboto bootstrap
shell: bin/python2.7 bootstrap.py
chdir=/srv/mr.roboto/
creates=/srv/mr.roboto/bin/buildout
virtualenv_command="/srv/python3.6/bin/python3.6 -m venv"

- name: Run mr.roboto buildout
shell: bin/buildout
chdir=/srv/mr.roboto/
notify: Restart mr.roboto

- name: Ensure system encoding is utf-8
lineinfile:
dest=/usr/lib/python2.7/sitecustomize.py
line="import sys; sys.setdefaultencoding('utf-8');"

# Install munin
- name: Install munin
apt: name=munin state=present
Expand Down Expand Up @@ -133,8 +120,11 @@
name="roboto:"
state=started
config=/srv/mr.roboto/supervisord.conf
supervisorctl_path=/srv/mr.roboto/bin/supervisorctl

- name: Restart mr.roboto
supervisorctl:
name="roboto:"
state=restarted
config=/srv/mr.roboto/supervisord.conf
supervisorctl_path=/srv/mr.roboto/bin/supervisorctl

0 comments on commit f1afb58

Please sign in to comment.