Skip to content

Commit

Permalink
Synced playbook.
Browse files Browse the repository at this point in the history
  • Loading branch information
ypid committed Jul 8, 2016
1 parent bc6027e commit e49c9b9
Showing 2 changed files with 17 additions and 11 deletions.
13 changes: 2 additions & 11 deletions docs/getting-started.rst
Original file line number Diff line number Diff line change
@@ -48,17 +48,8 @@ Example playbook
Here's an example playbook that can be used to enable and manage the
``unattended-upgrades`` service on a set of hosts:

.. code:: YAML
---
- name: Configure unattended APT upgrades
hosts: [ 'debops_all_hosts', 'debops_service_unattended_upgrades' ]
become: True
roles:
- role: debops.unattended_upgrades
tags: [ 'role::unattended_upgrades' ]
.. literalinclude:: playbooks/unattended_upgrades.yml
:language: yaml

Use as a role dependency
------------------------
15 changes: 15 additions & 0 deletions docs/playbooks/unattended_upgrades.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---

- name: Manage unattended APT upgrades
hosts: [ 'debops_all_hosts', 'debops_service_unattended_upgrades' ]
become: True

environment: '{{ inventory__environment | d({})
| combine(inventory__group_environment | d({}))
| combine(inventory__host_environment | d({})) }}'

roles:

- role: debops.unattended_upgrades
tags: [ 'role::unattended_upgrades' ]

0 comments on commit e49c9b9

Please sign in to comment.