2023-09-08 12:11:02 +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.
|
|
|
|
#
|
|
|
|
- name: Verify Ansible versions
|
|
|
|
hosts: all
|
|
|
|
tags: always
|
|
|
|
become: false
|
|
|
|
run_once: true
|
|
|
|
gather_facts: false
|
|
|
|
tasks:
|
2024-06-13 15:17:56 +00:00
|
|
|
- local_action: command ./roles.py --check
|
2023-09-08 12:11:02 +00:00
|
|
|
changed_when: false
|
|
|
|
|
|
|
|
- name: Bootstrap Python support for Ansible
|
|
|
|
gather_facts: False
|
|
|
|
hosts: all
|
|
|
|
serial: '{{ serial|default(1) }}'
|
|
|
|
roles:
|
|
|
|
- infra-role-bootstrap-linux/raw
|
|
|
|
|
|
|
|
- name: Bootstrap admin users and Consul
|
|
|
|
hosts: all
|
|
|
|
serial: '{{ serial|default(1) }}'
|
|
|
|
roles:
|
|
|
|
- infra-role-bootstrap-linux
|