Fix hostname if run with --check
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
- name: set hostname for void
|
||||
command: hostname "{{ inventory_hostname_short }}"
|
||||
when: ansible_os_family != "Debian" and hostname.stdout != inventory_hostname_short
|
||||
ignore_errors: yes
|
||||
|
||||
- name: /etc/hostname
|
||||
copy:
|
||||
|
||||
Reference in New Issue
Block a user