mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-03 23:26:58 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
11
roles/common/tasks/hostname.yml
Normal file
11
roles/common/tasks/hostname.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
|
||||
- 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'
|
||||
|
||||
...
|
||||
|
Reference in New Issue
Block a user