ansible/playbooks/site_pre.yml
Salt 0d4d3235c8 Add a glob for device type configuration
Apparently these playbooks weren't being called at all, which is really concerning
2022-04-18 11:17:09 -05:00

22 lines
785 B
YAML
Executable File

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
# Preambulatory system configuration
# It's implicit that configuration here MUST preceed site_main.yml
- import_playbook: all.yml
# Device type configuration
- import_playbook: "{{ item }}"
loop: "{{ lookup('fileglob' 'device_types_*.yml') }}"
# Platform configuration
- import_playbook: "{{ item }}"
loop: "{{ lookup('fileglob' 'platforms_*.yml') }}"
# Manufacturer configuration
- import_playbook: "{{ item }}"
loop: "{{ lookup('fileglob' 'manufacturers_*.yml') }}"
# Tags for fundamental services
- import_playbook: "{{ item }}"
loop: "{{ lookup('fileglob' 'tags_.yml') }}"
# Role (in the Netbox sense) configuration
- import_playbook: "{{ item }}"
loop: "{{ lookup('fileglob' 'device_roles_*.yml') }}"