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
27 lines
766 B
YAML
27 lines
766 B
YAML
---
|
|
- hosts: vms
|
|
name: Replace NetworkManager with systemd-networkd
|
|
tasks:
|
|
- name: Install systemd-networkd
|
|
when: enable_networkd == true
|
|
block:
|
|
- import_tasks: tasks/centos/networkd.yml
|
|
when: ansible_distribution == "CentOS"
|
|
- import_tasks: tasks/fedora/networkd.yml
|
|
when: ansible_distribution == "Fedora"
|
|
# - import_tasks: common/debian/networkd.yml
|
|
# when: ansible_distribution == "Debian" or ansible_distribution == "Ubuntu"
|
|
|
|
- import_tasks: tasks/networkd/config.yml
|
|
- import_tasks: tasks/networkd/services.yml
|
|
|
|
|
|
- hosts: vms
|
|
name: Install ovirt agent
|
|
tasks:
|
|
- name: Install ovirt-agent
|
|
become: true
|
|
yum:
|
|
name: ovirt-guest-agent
|
|
state: latest
|