ansible/bootstrap.yml: separate windows and macos

Avoids wasting time on running "skipped" things.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-07-07 12:14:22 +02:00
parent 358f7b3890
commit 2f7bf02480
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 16 additions and 3 deletions

View File

@ -21,23 +21,36 @@
- name: Bootstrap Python support for Ansible
become: true
hosts: all
hosts:
- all
- !nimbus-prater-macos
- !nimbus-prater-windows
serial: '{{ serial|default(1) }}'
roles:
- role: infra-role-bootstrap-linux/raw
when: ansible_system == 'Linux'
- name: Bootstrap admin users and Consul
become: true
become: false
gather_facts: true
hosts: all
serial: '{{ serial|default(1) }}'
roles:
- role: infra-role-bootstrap-linux
when: ansible_system == 'Linux'
- name: Bootstrap MacOS hosts
become: false
hosts:
- nimbus-prater-macos
roles:
- role: infra-role-bootstrap-macos
when: ansible_system == 'Darwin'
- name: Bootstrap Windows hosts
become: false
hosts:
- nimbus-prater-windows
roles:
- role: infra-role-bootstrap-windows
when: ansible_system == 'Win32NT'
vars: { fact_path: 'C:/ansible/facts.d' }