combine three bootstrap playbooks into one

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-10-12 17:14:47 +02:00
parent 6c67bcabdc
commit 5d828108b0
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 11 additions and 25 deletions

View File

@ -1,16 +0,0 @@
---
- name: Verify Ansible versions
hosts: all
tags: always
become: false
run_once: true
gather_facts: false
tasks:
- local_action: command ./versioncheck.py
changed_when: false
- name: Bootstrap macOS hosts
become: true
hosts: all
roles:
- infra-role-bootstrap-macos

View File

@ -1,6 +0,0 @@
---
- name: Bootstrap windows host
hosts: all
fact_path: 'C:/ansible/facts.d'
roles:
- infra-role-bootstrap-windows

View File

@ -21,13 +21,21 @@
- name: Bootstrap Python support for Ansible
become: true
gather_facts: False
hosts: all
roles:
- infra-role-bootstrap-linux/raw
- role: infra-role-bootstrap-linux/raw
when: ansible_system == 'Linux'
- name: Bootstrap admin users and Consul
become: true
hosts: all
roles:
- infra-role-bootstrap-linux
- role: infra-role-bootstrap-linux
when: ansible_system == 'Linux'
- role: infra-role-bootstrap-macos
when: ansible_system == 'Darwin'
- role: infra-role-bootstrap-windows
when: ansible_system == 'Win32nt'
vars: { fact_path: 'C:/ansible/facts.d' }