Getting started
Example inventory
The role is included by default in the bootstrap.yml and common.yml
playbook, therefore you don't need to do anything to enable it.
Example playbook
If you are using this role without DebOps, here's an example Ansible playbook
that uses the debops.netbase role:
---
- name: Manage local host and network database
collections: [ 'debops.debops' ]
hosts: [ 'debops_all_hosts', 'debops_service_netbase' ]
become: True
environment: '{{ inventory__environment | d({})
| combine(inventory__group_environment | d({}))
| combine(inventory__host_environment | d({})) }}'
roles:
- role: python
tags: [ 'role::python', 'skip::python', 'role::netbase' ]
python__dependent_packages3:
- '{{ netbase__python__dependent_packages3 }}'
python__dependent_packages2:
- '{{ netbase__python__dependent_packages2 }}'
- role: netbase
tags: [ 'role::netbase', 'skip::netbase' ]
Other resources
List of other useful resources related to the debops.netbase Ansible role:
Manual pages: hostname(5), hosts(5), networks(5)