Skip to content

Commit

Permalink
Add example playbook and inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
ganto committed Aug 30, 2016
1 parent 11b727b commit 54a9b09
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,27 @@ server configuration.
"/.well-known/acme-challenge/" => "/var/www/acme-challenges/",
)
Example playbook
----------------

A minimal playbook which would run the ``ganto.acme_tiny`` role to request a
SSL certificate would looke like this:

.. literalinclude:: playbooks/acme_tiny.yml
:language: yaml


Example inventory
-----------------

When using the playbook :ref:`above <Example playbook>` the host to run the
role has to be added to the ``[acme_tiny]`` host group in the Ansible
inventory::

[acme_tiny]
hostname

..
Local Variables:
mode: rst
Expand Down
8 changes: 8 additions & 0 deletions docs/playbooks/acme_tiny.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---

- name: Request and setup Let's encrypt SSL certificate
hosts: acme_tiny
gather_facts: False

roles:
- ganto.acme_tiny

0 comments on commit 54a9b09

Please sign in to comment.