Skip to content

Ansible role to install and configure an API-Hour daemon

Notifications You must be signed in to change notification settings

Eyepea/ansible-role-api-hour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eyepea.api-hour

Build Status

Ansible role to install and configure an API-Hour daemon.

Installation

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

Requirements

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

Role Variables

  • 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 to master).
  • ah_requirements_path: Path to python requirements file (default to requirements.txt).
  • ah_sockets: List of listening sockets (default to [0.0.0.0:8000]).
  • ah_systemd_socket_template: Custom template for systemd socket (default to etc/systemd/system/project.socket.j2).
  • ah_systemd_service_template: Custom template for systemd service (default to etc/systemd/system/project.service.j2).

Example Playbook

- 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

License

MIT

About

Ansible role to install and configure an API-Hour daemon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published