Ethan Paul
c27460c47e
Split cloud VMs out from local VMs in 'cloud' group Generalize networkd install/config Generalize sshd config Create general update playbook Add host vm-host-nextcloud
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
---
|
|
- import_playbook: dependencies.yml
|
|
|
|
|
|
- hosts: all
|
|
name: Init
|
|
tags: initialize
|
|
tasks:
|
|
- name: Set hostname
|
|
become: true
|
|
hostname:
|
|
name: "{{ default_host if default_host is defined else inventory_hostname }}"
|
|
|
|
- name: Install global bashrc
|
|
become: true
|
|
copy:
|
|
src: bashrc.sh
|
|
dest: /etc/profile.d/global-bashrc.sh
|
|
mode: 0644
|
|
|
|
- import_tasks: tasks/sshd/banner.yml
|
|
|
|
|
|
- hosts: all
|
|
name: System packages
|
|
tags: initialize
|
|
tasks:
|
|
- name: Load package variables
|
|
include_vars:
|
|
file: packages.yml
|
|
- import_tasks: tasks/centos/repositories.yml
|
|
when: ansible_distribution == "CentOS"
|
|
- import_tasks: tasks/centos/packages.yml
|
|
when: ansible_distribution == "CentOS"
|
|
- import_tasks: tasks/fedora/packages.yml
|
|
when: ansible_distribution == "Fedora"
|
|
# - import_tasks: tasks/debian/packages.yml
|
|
# when: ansible_distribution == "Debian" or ansible_distribution == "Ubuntu"
|
|
|
|
|
|
#- import_playbook: provision-workstation.yml
|
|
#- import_playbook: provision-server.yml
|
|
#- import_playbook: provision-hypervisor.yml
|
|
- import_playbook: provision-virtual-machine.yml
|
|
|
|
|
|
- import_playbook: update.yml
|