55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
---
|
|
#
|
|
# This playbook configures most basic things about the hosts:
|
|
#
|
|
# - Admin and Additional users
|
|
# - Disables root login
|
|
# - Installs Common packages
|
|
# - Starts Consul client agent
|
|
#
|
|
# This is run on every newly provisioned host.
|
|
#
|
|
- 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 Python support for Ansible
|
|
become: true
|
|
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
|
|
gather_facts: true
|
|
hosts: all
|
|
serial: '{{ serial|default(1) }}'
|
|
roles:
|
|
- role: infra-role-bootstrap-linux
|
|
when: ansible_system == 'Linux'
|
|
|
|
- name: Bootstrap MacOS hosts
|
|
become: true
|
|
hosts:
|
|
- nimbus-holesky-macm2
|
|
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
|
|
vars: { fact_path: 'C:/ansible/facts.d' }
|