Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aabouzaid/ansible-role-yourls

Ansible role to install Yourls, a URL shortener web app.
https://github.com/aabouzaid/ansible-role-yourls

ansible ansible-role yourls

Last synced: 7 days ago
JSON representation

Ansible role to install Yourls, a URL shortener web app.

Awesome Lists containing this project

README

        

Yourls Ansible Role
===================

[![Build Status][travis-badge]][travis-link]
[![GPL v2 licensed][license-badge]][license-link]
[![Galaxy Role][role-badge]][galaxy-link]

Ansible role to install Yourls (Your Own URL Shortener, PHP web app).

Requirements
------------

This role has no requirements by itself, but Yourls needs PHP and MySQL.

Role Variables
--------------

Since nested variables are used here, so to avoid defining the while vars,
it's recommended to set `hash_behaviour = merge` or pass env var `ANSIBLE_HASH_BEHAVIOUR=merge`
at Ansible execution.

Example Playbook
----------------

There are some variables that you need to set like site URL, DB info, users ... etc.
A specific Yourls version could be selected, if not, it will get latest Yourls version.

```
yourls:
version: latest
path: /var/html/yourls
owner: root
group: root
db:
name: yourls
user: yourls_db_password
pass: yourls_db_username
host: localhost
prefix: yourls_
users:
user01: user01_password
conf:
site: http://your-own-domain-here.com
```

License
-------

GNU GPL v2

Author Information
------------------

[Ahmed AbouZaid](http://tech.aabouzaid.com/).

[license-badge]: https://img.shields.io/badge/License-GPL%20v2-blue.svg
[license-link]: https://www.gnu.org/licenses/gpl-2.0.txt
[role-badge]: https://img.shields.io/ansible/role/23300.svg
[galaxy-link]: https://galaxy.ansible.com/AAbouZaid/yourls/
[travis-badge]: https://api.travis-ci.org/AAbouZaid/ansible-role-yourls.svg?branch=master
[travis-link]: https://travis-ci.org/AAbouZaid/ansible-role-yourls