Getting started

Example inventory

The debops.auth role is included in the common.yml DebOps playbook and doesn't need to be specifically activated.

Example playbook

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


- name: Manage authentication and authorization
  collections: [ 'debops.debops', 'debops.roles01',
                 'debops.roles02', 'debops.roles03' ]
  hosts: [ 'debops_all_hosts', 'debops_service_auth' ]
  become: True

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


    - role: auth
      tags: [ 'role::auth', 'skip::auth' ]