Getting started
Default configuration
The non-free
and non-free-firmware
sections of the Debian Archive will
be enabled automatically on hardware-based hosts in case any non-free firmware
is required. Otherwise, only the main
and universe
(on Ubuntu)
repositories are enabled. Users can control this using the
apt__nonfree
and apt__nonfree_firmware
boolean variables.
Example inventory
The debops.apt
role is included by default in the layer/common.yml
DebOps playbook; you don't need to do anything to have it executed.
If you don’t want to let debops.apt
manage APT, you can do this with the
following setting in your inventory:
apt__enabled: False
Example playbook
If you are using this role without DebOps, here's an example Ansible playbook
that uses the debops.apt
role:
---
- name: Manage Advanced Package Manager
collections: [ 'debops.debops', 'debops.roles01',
'debops.roles02', 'debops.roles03' ]
hosts: [ 'debops_all_hosts', 'debops_service_apt' ]
become: True
environment: '{{ inventory__environment | d({})
| combine(inventory__group_environment | d({}))
| combine(inventory__host_environment | d({})) }}'
roles:
- role: apt
tags: [ 'role::apt', 'skip::apt' ]