Getting started

Example inventory

The debops.root_account role is included by default in the common.yml DebOps playbook; you don't need to do anything to have it executed.

If you don’t want to let debops.root_account manage the root account, you can do this with the following setting in your inventory:

root_account__enabled: False

Example playbook

If you are using this role without DebOps, here's an example Ansible playbook that uses the debops.root_account role:


- name: Manage the root account
  hosts: [ 'debops_all_hosts', 'debops_service_root_account' ]
  become: True

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


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