Skip to content
Snippets Groups Projects
Commit ef74305b authored by nimrod's avatar nimrod
Browse files

- Forked from the example role.

- Assume Debian or Debian-based OS with Systemd.
parent c87f5e52
Branches
No related tags found
No related merge requests found
......@@ -10,13 +10,9 @@ env:
- VBOX_HWVIRTEX=off
matrix:
- TOXENV=pre-commit
- TOXENV=openbsd60
- TOXENV=xenial
- TOXENV=trusty
- TOXENV=precise
- &stretch TOXENV=stretch
- &jessie TOXENV=jessie
- TOXENV=wheezy
matrix:
fast_finish: True
allow_failures:
......
Example
#######
Transmission
############
.. image:: https://travis-ci.org/adarnimrod/example.svg?branch=master
:target: https://travis-ci.org/adarnimrod/example
.. image:: https://travis-ci.org/adarnimrod/transmission.svg?branch=master
:target: https://travis-ci.org/adarnimrod/transmission
An (empty) example Ansible role complete with working tests out of the box. For
more information read the `blog post
<https://www.shore.co.il/blog/ansible-example-role/>`_.
Provision the `Transmission <https://transmissionbt.com/>`_ BitTorrent client as
a headless web server. Also, optionally provision the `transmission-rss
<https://github.com/nning/transmission-rss>`_ service.
Requirements
------------
......@@ -35,6 +35,7 @@ Testing requires Python 2.7, Tox, Vagrant and Virtualbox. To test simply run
:code:`tox`. `Pre-commit <http://pre-commit.com/>`_ is also setup for this
project.
License
-------
......
---
# defaults file for example
# defaults file for transmission
---
# handlers file for example
# handlers file for transmission
galaxy_info:
author: Nimrod Adar
description: An example Ansible role
description: Provision the `Transmission <https://transmissionbt.com/>`_ BitTorrent client as headless web server.
company: Shore technologies
license: MIT
min_ansible_version: 2.3
platforms:
- name: OpenBSD
versions:
- 6.0
- name: Ubuntu
versions:
- xenial
- trusty
- precise
- name: Debian
versions:
- stretch
- jessie
- wheezy
galaxy_tags: [ ansible ]
galaxy_tags: [ transmission, torrent, bittorrent ]
dependencies: []
......@@ -35,7 +35,7 @@ vagrant:
- name: wheezy
box: bmorg/debian-wheezy-i386
instances:
- name: example
- name: transmission
options:
append_platform_to_hostname: yes
raw_config_args:
......
---
# tasks file for example
# tasks file for transmission
- name: Assertions
assert:
that:
- ansible_os_family in ['OpenBSD', 'Debian']
- ansible_distribution_release in ['xenial', 'trusty', 'precise', 'stretch', 'jessie', 'wheezy'] or ansible_distribution_version in ['6.0']
- ansible_pkg_mgr == 'apt'
- ansible_service_mgr == 'systemd'
---
- hosts: example-openbsd*
- hosts: transmission-openbsd*
gather_facts: false
roles:
- openbsd-bootstrap
......@@ -8,7 +8,7 @@
users_use_sudo: True
users_lock_root_ssh: False
- hosts: [example-xenial, example-wheezy]
- hosts: [transmission-xenial, transmission-wheezy]
gather_facts: false
roles:
- debian-bootstrap
......@@ -19,4 +19,4 @@
- hosts: all
roles:
- role: example
- role: transmission
[tox]
skip_install = True
skipsdist = True
envlist = openbsd60,xenial,trusty,precise,stretch,jessie,wheezy
envlist = xenial,stretch,jessie
[testenv]
envdir = {toxinidir}/.tox/molecule
......
---
# vars file for example
# vars file for transmission
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment