A few ansible roles that we use here, at @IONISx.
Here’s a small documentation about the roles you can find here.
All roles should depend on the base
role.
It installs a few dependencies required by some ansible tasks, it also installs git and ntp.
If you define a mirror_apt_url
, apt will be configured to point to that URL. So install apt_cacher_ng
, then define that variable somewhere in your playbooks.
mirror_apt_url: 'http://{{ apt_cacher_ng_host }}:{{ apt_cacher_ng_port }}'
Dependencies: base
All nodejs applications should depend on the base_nodejs
role.
It builds a recent version of nodejs.
If you define a mirror_npm_url
, npm will be (globally) configured to point to that URL. So install sinopia
, then define that variable somewhere in your playbooks.
mirror_npm_url: 'http://{{ sinopia_host }}:{{ sinopia_port }}'
Dependencies: base
All python2 applications should depend on the base_python2
role.
It installs python2.7, pip and virtualenv.
If you define a mirror_pypi_url
, pip and easy_install will be configured for the root user to use that URL. So install devpi
, then define that variable somewhere in your playbooks.
mirror_pypi_url: 'http://{{ devpi_host }}:{{ devpi_port }}/root/pypi/+simple/'
Dependencies: base
Installs apt-cacher-ng.
Dependencies: base_nodejs
Installs sinopia.
Dependencies: base_python2
Installs devpi.
Dependencies: base
Installs phantomjs.
Specify version using phantomjs_version
.
Based on https://github.com/nicolai86/ansible-phantomjs.