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
39 lines
888 B
YAML
39 lines
888 B
YAML
---
|
|
- name: Disable network scripts and NetworkManager
|
|
become: true
|
|
service:
|
|
name: "{{ item }}"
|
|
enabled: false
|
|
with_items:
|
|
- network
|
|
- NetworkManager
|
|
- NetworkManager-wait-online
|
|
|
|
- name: Enable systemd-networkd and systemd-resolved
|
|
become: true
|
|
service:
|
|
name: "{{ item }}"
|
|
enabled: true
|
|
state: started
|
|
with_items:
|
|
- systemd-networkd
|
|
- systemd-resolved
|
|
- systemd-networkd-wait-online
|
|
|
|
- name: Symlink so systemd-resolved uses /etc/resolv.conf
|
|
become: true
|
|
file:
|
|
dest: /etc/resolv.conf
|
|
src: /run/systemd/resolve/resolv.conf
|
|
state: link
|
|
force: true
|
|
setype: net_conf_t
|
|
|
|
- name: Symlink so /etc/resolv.conf uses systemd
|
|
become: true
|
|
file:
|
|
dest: /etc/systemd/system/multi-user.target.wants/systemd-resolved.service
|
|
src: /usr/lib/systemd/system/systemd-resolved.service
|
|
state: link
|
|
force: true
|