|
|
@ -50,11 +50,3 @@ |
|
|
|
name: "{{ item }}" |
|
|
|
with_items: "{{pip_python_modules}}" |
|
|
|
|
|
|
|
- name: Check configured hostname |
|
|
|
shell: hostname |
|
|
|
register: configured_hostname |
|
|
|
check_mode: no |
|
|
|
|
|
|
|
- name: Assign inventory name to unconfigured hostnames |
|
|
|
shell: sh -c "echo \"{{inventory_hostname}}\" > /etc/hostname; hostname \"{{inventory_hostname}}\"" |
|
|
|
when: (configured_hostname.stdout == 'localhost') |