Skip to content
Snippets Groups Projects
Commit 5691086b authored by Smaine Kahlouch's avatar Smaine Kahlouch
Browse files

Merge pull request #164 from oneswig/master

Provide a non-default hostname for CoreOS systems.
parents fd64f4d2 edcd5bf6
No related branches found
No related tags found
No related merge requests found
...@@ -38,3 +38,11 @@ ...@@ -38,3 +38,11 @@
pip: pip:
name: "{{ item }}" name: "{{ item }}"
with_items: pip_python_modules with_items: pip_python_modules
- name: Check configured hostname
shell: hostname
register: configured_hostname
- name: Assign inventory name to unconfigured hostnames
shell: sh -c "echo \"{{inventory_hostname}}\" > /etc/hostname; hostname \"{{inventory_hostname}}\""
when: configured_hostname.stdout == 'localhost'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment