From ef74305b0300defd7db2b59a283ff95de8521961 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Mon, 15 May 2017 09:04:51 +0300
Subject: [PATCH] - Forked from the example role. - Assume Debian or
 Debian-based OS with Systemd.

---
 .travis.yml        |  4 ----
 README.rst         | 15 ++++++++-------
 defaults/main.yml  |  2 +-
 handlers/main.yml  |  2 +-
 meta/main.yml      | 10 ++--------
 molecule.yml       |  2 +-
 tasks/main.yml     |  6 +++---
 tests/playbook.yml |  6 +++---
 tox.ini            |  2 +-
 vars/main.yml      |  2 +-
 10 files changed, 21 insertions(+), 30 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 4fe1440..ab26911 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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:
diff --git a/README.rst b/README.rst
index d50fb09..2b77248 100644
--- a/README.rst
+++ b/README.rst
@@ -1,12 +1,12 @@
-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
 -------
 
diff --git a/defaults/main.yml b/defaults/main.yml
index 0a97962..0cb6c98 100644
--- a/defaults/main.yml
+++ b/defaults/main.yml
@@ -1,2 +1,2 @@
 ---
-# defaults file for example
+# defaults file for transmission
diff --git a/handlers/main.yml b/handlers/main.yml
index bd0df0d..5472003 100644
--- a/handlers/main.yml
+++ b/handlers/main.yml
@@ -1,2 +1,2 @@
 ---
-# handlers file for example
+# handlers file for transmission
diff --git a/meta/main.yml b/meta/main.yml
index d768011..2dc5f74 100644
--- a/meta/main.yml
+++ b/meta/main.yml
@@ -1,22 +1,16 @@
 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: []
diff --git a/molecule.yml b/molecule.yml
index 3456b7a..eeeaefa 100644
--- a/molecule.yml
+++ b/molecule.yml
@@ -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:
diff --git a/tasks/main.yml b/tasks/main.yml
index 0ab13c5..2255ca0 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,8 +1,8 @@
 ---
-# 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'
diff --git a/tests/playbook.yml b/tests/playbook.yml
index 55444f3..5e3cd37 100644
--- a/tests/playbook.yml
+++ b/tests/playbook.yml
@@ -1,5 +1,5 @@
 ---
-- 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
diff --git a/tox.ini b/tox.ini
index c80d480..71cedaa 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,7 +1,7 @@
 [tox]
 skip_install = True
 skipsdist = True
-envlist = openbsd60,xenial,trusty,precise,stretch,jessie,wheezy
+envlist = xenial,stretch,jessie
 
 [testenv]
 envdir = {toxinidir}/.tox/molecule
diff --git a/vars/main.yml b/vars/main.yml
index 7542f3c..ee2d59b 100644
--- a/vars/main.yml
+++ b/vars/main.yml
@@ -1,2 +1,2 @@
 ---
-# vars file for example
+# vars file for transmission
-- 
GitLab