mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-11 18:09:59 -03:30
Merge branch 'master' into flagfixes12
This commit is contained in:
commit
107da007b1
@ -38,3 +38,11 @@
|
||||
pip:
|
||||
name: "{{ item }}"
|
||||
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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user