Ansible role to install and configure an API-Hour daemon.
To install this roles clone it into your roles directory.
$ git clone https://github.com/eyepea/ansible-role-api-hour.git eyepea.api-hour
If your playbook already reside inside a git repository you can clone it by using git submodules.
$ git submodule add -b master https://github.com/eyepea/ansible-role-api-hour.git eyepea.api-hour
The pyslackers.python is required to install python. Install it with one of these commands:
$ git clone https://github.com/pyslackers/ansible-role-python.git pyslackers.python
$ git submodule add -b master https://github.com/pyslackers/ansible-role-python.git pyslackers.python
ah_name
: Name of the daemon.ah_git_url
: Git url to clone daemon.ah_python_version
: Python version required for the daemon.ah_version
: Version to clone (default tomaster
).ah_requirements_path
: Path to python requirements file (default torequirements.txt
).ah_sockets
: List of listening sockets (default to[0.0.0.0:8000]
).ah_systemd_socket_template
: Custom template for systemd socket (default toetc/systemd/system/project.socket.j2
).ah_systemd_service_template
: Custom template for systemd service (default toetc/systemd/system/project.service.j2
).
- hosts: localhost
vars:
ah_name: api-hour-demo
ah_git_url: https://github.com/Eyepea/api-hour-demo.git
ah_python_version: 3.6.3
roles:
- eyepea.api-hour
MIT