facts: get platform info from NetBox

Instead of pinging each host to see if it’s Windows. Make sure to set
the platform at least for such hosts.
This commit is contained in:
Timotej Lazar 2025-05-13 13:31:07 +02:00
parent 7cbbf635a8
commit d162f175a4
3 changed files with 14 additions and 21 deletions

View file

@ -1,19 +1,18 @@
# common stuff
- hosts: '*'
- name: Get NetBox and other data
hosts: '*'
gather_facts: false
roles:
- facts
- hosts: '*'
- name: Set up base system
hosts: '*'
roles:
- { role: alpine, when: ansible_distribution == 'Alpine' }
- { role: debian, when: ansible_distribution == 'Debian' }
- { role: windows, when: ansible_os_family == 'Windows' }
# hosts
- hosts: mgmt-gw
roles:
- hosts: ceph-*
roles:
- frr