On 25. mai 2017 17:56, Emmet Ryan wrote:
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
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/0316f9f0-8398-90ef-713e-b147022a3a08%40olstad.com.
For more options, visit https://groups.google.com/d/optout.