infra-nimbus/ansible/bootstrap.yml
Jakub Sokołowski 5d828108b0
combine three bootstrap playbooks into one
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-10-12 17:16:22 +02:00

42 lines
961 B
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
roles:
- role: infra-role-bootstrap-linux/raw
when: ansible_system == 'Linux'
- name: Bootstrap admin users and Consul
become: true
hosts: all
roles:
- 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' }