With the transition away from *dhcpcd* on the VM hosts, there is no longer any need for a custom wait script that must run prior to attempting to mount the shared filesystem. This dramatically simplifies the configuration necessary for shared storage. I don't really see any reason why the shared storage configuration needs to be managed by a separate role. The *vmhost* role is not really generic anyway, and will probably not work for any other VM host deployment besides the two machines running now. As such, I think it makes sense to move the task to mount the shared filesystem into the *vmhost* role and drop the *dch-storage-net* role.
14 lines
274 B
YAML
14 lines
274 B
YAML
- hosts: vm-hosts:&networkd
|
|
roles:
|
|
- role: systemd-networkd
|
|
vars:
|
|
networkd_links: []
|
|
networkd_devices: '{{ vmhost_netdevs }}'
|
|
networkd_networks: '{{ vmhost_networks }}'
|
|
tags:
|
|
- networkd
|
|
- netconfig
|
|
- hosts: vm-hosts
|
|
roles:
|
|
- vmhost
|