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:
parent
7cbbf635a8
commit
d162f175a4
3 changed files with 14 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue