From 342f21054c65a4e3eacd98313d8a7668dc26f3f9 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 19 Feb 2017 09:37:17 +0200 Subject: [PATCH] - Forked from the example role. --- README.rst | 10 ++++------ defaults/main.yml | 2 +- handlers/main.yml | 2 +- meta/main.yml | 14 ++++++++++++-- molecule.yml | 2 +- tasks/main.yml | 2 +- tests/playbook.yml | 6 +++--- tests/test_certbot.py | 0 vars/main.yml | 2 +- 9 files changed, 24 insertions(+), 16 deletions(-) create mode 100644 tests/test_certbot.py diff --git a/README.rst b/README.rst index 9336623..4f91b79 100644 --- a/README.rst +++ b/README.rst @@ -1,12 +1,10 @@ -Example +Certbot ####### -.. image:: https://travis-ci.org/adarnimrod/example.svg?branch=master - :target: https://travis-ci.org/adarnimrod/example +.. image:: https://travis-ci.org/adarnimrod/certbot.svg?branch=master + :target: https://travis-ci.org/adarnimrod/certbot -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 Certbot. Requirements ------------ diff --git a/defaults/main.yml b/defaults/main.yml index 0a97962..2949b39 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,2 +1,2 @@ --- -# defaults file for example +# defaults file for certbot diff --git a/handlers/main.yml b/handlers/main.yml index bd0df0d..bce305f 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,2 +1,2 @@ --- -# handlers file for example +# handlers file for certbot diff --git a/meta/main.yml b/meta/main.yml index 2dea7f4..b93e205 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,6 +1,6 @@ galaxy_info: author: Nimrod Adar - description: An example Ansible role + description: Provision Certbot company: Shore technologies license: MIT min_ansible_version: 2.0 @@ -8,8 +8,18 @@ galaxy_info: - name: OpenBSD versions: - 6.0 + - 5.9 - name: Ubuntu versions: - xenial + - trusty + - precise + - name: Debian + versions: + - stretch + - jessie + - wheezy galaxy_tags: [ ansible ] -dependencies: [] +dependencies: + - name: python27 + src: adarnimrod.python27 diff --git a/molecule.yml b/molecule.yml index eb1bc5a..e9dd287 100644 --- a/molecule.yml +++ b/molecule.yml @@ -33,7 +33,7 @@ vagrant: - name: wheezy box: bmorg/debian-wheezy-i386 instances: - - name: example + - name: certbot options: append_platform_to_hostname: yes raw_config_args: diff --git a/tasks/main.yml b/tasks/main.yml index 2b91e0a..dc0d7e8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,5 +1,5 @@ --- -# tasks file for example +# tasks file for certbot - name: Assertions assert: diff --git a/tests/playbook.yml b/tests/playbook.yml index 55444f3..8d637f7 100644 --- a/tests/playbook.yml +++ b/tests/playbook.yml @@ -1,5 +1,5 @@ --- -- hosts: example-openbsd* +- hosts: certbot-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: [certbot-xenial, certbot-wheezy] gather_facts: false roles: - debian-bootstrap @@ -19,4 +19,4 @@ - hosts: all roles: - - role: example + - role: certbot diff --git a/tests/test_certbot.py b/tests/test_certbot.py new file mode 100644 index 0000000..e69de29 diff --git a/vars/main.yml b/vars/main.yml index 7542f3c..d158fe5 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,2 +1,2 @@ --- -# vars file for example +# vars file for certbot -- GitLab