Skip to content

IONISx/ansible-roles

Repository files navigation

ansible-roles

A few ansible roles that we use here, at @IONISx.

Roles

Here’s a small documentation about the roles you can find here.

Base role : base

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 }}'

Base role : base_nodejs

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 }}'

Base role : base_python2

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/'

apt_cacher_ng

Dependencies: base

Installs apt-cacher-ng.

sinopia

Dependencies: base_nodejs

Installs sinopia.

devpi

Dependencies: base_python2

Installs devpi.

phantomjs

Dependencies: base

Installs phantomjs.
Specify version using phantomjs_version.
Based on https://github.com/nicolai86/ansible-phantomjs.

License

MIT License

Releases

No releases published

Packages

No packages published