2019-03-18 15:44:43 +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-11 07:22:02 +00:00
|
|
|
- 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
|
|
|
|
|
2019-03-18 15:44:43 +00:00
|
|
|
- name: Bootstrap Python support for Ansible
|
|
|
|
gather_facts: False
|
|
|
|
hosts: all
|
2022-02-08 18:38:20 +00:00
|
|
|
serial: '{{ serial|default(1) }}'
|
2019-03-18 15:44:43 +00:00
|
|
|
roles:
|
2021-07-28 09:36:40 +00:00
|
|
|
- infra-role-bootstrap-linux/raw
|
2019-03-18 15:44:43 +00:00
|
|
|
|
|
|
|
- name: Bootstrap admin users and Consul
|
|
|
|
hosts: all
|
2022-02-08 18:38:20 +00:00
|
|
|
serial: '{{ serial|default(1) }}'
|
2019-03-18 15:44:43 +00:00
|
|
|
roles:
|
2021-07-28 09:36:40 +00:00
|
|
|
- infra-role-bootstrap-linux
|