I recently upgraded to Ansible 2.3 for KDE Neon support and ran into the
following failure when running a playbook against it:msg: hostname module cannot be used on platform Linux (Neon)
There is noting about Neon in the source
https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/system/hostname.py
And this is the task it failed on:
- name: set hostname
hostname:
name: "{{ host }}"Has anyone found a solution or workaround to this?
IIRC Neon is based on Ubuntu, then you should be able to do this
- name: set hostname
copy:
content: "{{ host }}"
dest: /etc/hostname