mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 18:23:40 +02:00
12 lines
291 B
YAML
12 lines
291 B
YAML
---
|
|
|
|
- name: Set system hostname
|
|
hostname: name={{ system_hostname | default(inventory_hostname | regex_replace('^([^\.]+)\..*','\\1')) }}
|
|
|
|
- name: Prevent PVE from changing /etc/hostname
|
|
copy: content='' dest=/etc/.pve-ignore.hostname
|
|
when: ansible_virtualization_type == 'lxc'
|
|
|
|
...
|
|
|