From 2f7bf02480d41a2393f799d7cbc0cb83cfae43e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 7 Jul 2023 12:14:22 +0200 Subject: [PATCH] ansible/bootstrap.yml: separate windows and macos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avoids wasting time on running "skipped" things. Signed-off-by: Jakub SokoĊ‚owski --- ansible/bootstrap.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/ansible/bootstrap.yml b/ansible/bootstrap.yml index 0c2867b..7e51870 100644 --- a/ansible/bootstrap.yml +++ b/ansible/bootstrap.yml @@ -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' }