diff --git a/.travis.yml b/.travis.yml index 4fe1440ca59681ea63e3e0e5b240794217285a57..ab269115ebf2590105aea7b110850365a1219c45 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 d50fb09c8eb2981fc3817e27116a87b161505707..2b7724807ca77ede3c356dbab6f9018438903ebf 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 0a97962c3b635cf908e8e45d5171b0aa8b7f3d92..0cb6c9842c552f1af26e69063b4914511c44871f 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 bd0df0d80d6094e097cca7760cd1b12a480df33c..5472003065429886524a557fc782d34d92ac5d2a 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 d768011e6d12fce30f080f03ab7b77ba904b9936..2dc5f74fc6eb0587f7691b8185c1b8e6735089b2 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 3456b7af84c8aaf756cec8c6739a22a759fe4d2f..eeeaefadffa0e19c1bb7a27eca5d2befbe0c478a 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 0ab13c50f3aa88dc431f5b1d4f26744bb1db3bf9..2255ca029b21509517ceca20c950150a0f4819e1 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 55444f3e9d597410c72104be8cd4b99151243a5a..5e3cd377c8881daf7ddbbd2c744e95f23653fce6 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 c80d480b6f557c37a14f6ec977a2900494e95d51..71cedaafa81e0334ea3fb5ba2c960a77c89a1731 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 7542f3cf45dd754b408bd13b5c57af85bc3d0fc8..ee2d59b09a08cd83d895e68811947d59a0ffb59c 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,2 +1,2 @@ --- -# vars file for example +# vars file for transmission