sealion
Ansible weareinteractive.sealion role
weareinteractive.sealion
is an Ansible role which:
- installs sealion
- configures service
Note:
Since Ansible Galaxy supports organization now, this role has moved from
franklinkim.sealion
toweareinteractive.sealion
!
Installation
Using ansible-galaxy
:
$ ansible-galaxy install weareinteractive.sealion
Using requirements.yml
:
- src: weareinteractive.sealion
Using git
:
$ git clone https://github.com/weareinteractive/ansible-sealion.git weareinteractive.sealion
Dependencies
- Ansible >= 2.0
Variables
Here is a list of all the default variables for this role, which are also available in defaults/main.yml
.
---
# sealion key
sealion_key:
# sealion version
sealion_version: 3.5.1
# start on boot
sealion_service_enabled: yes
# current state: started, stopped
sealion_service_state: started
Handlers
These are the handlers that are defined in handlers/main.yml
.
---
- name: restart sealion
service:
name: sealion
state: restarted
when: sealion_service_state != 'stopped'
Usage
This is an example playbook:
---
- hosts: all
roles:
- weareinteractive.sealion
vars:
sealion_service_enabled: no
sealion_service_state: stopped
sealion_key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Testing
$ git clone https://github.com/weareinteractive/ansible-sealion.git
$ cd ansible-sealion
$ make test
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Note: To update the README.md
file please install and run ansible-role
:
$ gem install ansible-role
$ ansible-role docgen
License
Copyright (c) We Are Interactive under the MIT license.
Install
ansible-galaxy install weareinteractive/ansible-sealion
License
mit
Downloads
28
Owner