2019-03-21 11:00:53 +00:00
|
|
|
---
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2021-05-10 13:29:38 +00:00
|
|
|
- name: Verify Ansible versions
|
|
|
|
hosts: all
|
|
|
|
tags: always
|
|
|
|
become: false
|
|
|
|
run_once: true
|
|
|
|
gather_facts: false
|
|
|
|
tasks:
|
2024-06-13 15:19:32 +00:00
|
|
|
- local_action: command ./roles.py --check
|
2021-05-10 13:29:38 +00:00
|
|
|
changed_when: false
|
|
|
|
|
2019-03-21 11:00:53 +00:00
|
|
|
- name: Bootstrap Python support for Ansible
|
2021-02-09 19:27:13 +00:00
|
|
|
become: true
|
2023-07-07 10:14:22 +00:00
|
|
|
hosts:
|
2024-04-19 08:13:23 +00:00
|
|
|
- all,!nimbus-holesky-macos,!nimbus-holesky-windows
|
2022-02-08 19:51:45 +00:00
|
|
|
serial: '{{ serial|default(1) }}'
|
2019-03-21 11:00:53 +00:00
|
|
|
roles:
|
2021-10-12 15:14:47 +00:00
|
|
|
- role: infra-role-bootstrap-linux/raw
|
|
|
|
when: ansible_system == 'Linux'
|
2019-03-21 11:00:53 +00:00
|
|
|
|
|
|
|
- name: Bootstrap admin users and Consul
|
2023-07-12 14:51:57 +00:00
|
|
|
become: true
|
2023-07-07 10:14:22 +00:00
|
|
|
gather_facts: true
|
2019-03-21 11:00:53 +00:00
|
|
|
hosts: all
|
2022-02-08 19:51:45 +00:00
|
|
|
serial: '{{ serial|default(1) }}'
|
2019-03-21 11:00:53 +00:00
|
|
|
roles:
|
2021-10-12 15:14:47 +00:00
|
|
|
- role: infra-role-bootstrap-linux
|
|
|
|
when: ansible_system == 'Linux'
|
|
|
|
|
2023-07-07 10:14:22 +00:00
|
|
|
- name: Bootstrap MacOS hosts
|
2023-08-02 19:08:02 +00:00
|
|
|
become: true
|
2023-07-07 10:14:22 +00:00
|
|
|
hosts:
|
2024-02-06 18:56:05 +00:00
|
|
|
- nimbus-holesky-macm2
|
2023-07-07 10:14:22 +00:00
|
|
|
roles:
|
2021-10-12 15:14:47 +00:00
|
|
|
- role: infra-role-bootstrap-macos
|
|
|
|
when: ansible_system == 'Darwin'
|
|
|
|
|
2023-07-07 10:14:22 +00:00
|
|
|
- name: Bootstrap Windows hosts
|
|
|
|
become: false
|
|
|
|
hosts:
|
2024-03-26 11:41:44 +00:00
|
|
|
- nimbus-holesky-windows
|
2023-07-07 10:14:22 +00:00
|
|
|
roles:
|
2021-10-12 15:14:47 +00:00
|
|
|
- role: infra-role-bootstrap-windows
|
|
|
|
vars: { fact_path: 'C:/ansible/facts.d' }
|