d6f5969c10
git-subtree-dir: roles/ensure_hostname git-subtree-mainline:dd10aa41f2git-subtree-split:c4e969b6c9
11 lines
247 B
YAML
11 lines
247 B
YAML
---
|
|
# tasks file for ensure_hostname
|
|
- name: 'Set hostname if localhost'
|
|
when:
|
|
- ansible_facts["system"] == 'Linux'
|
|
- ansible_facts["fqdn"] == 'localhost.localdomain'
|
|
ansible.builtin.hostname:
|
|
name: '{{ inventory_hostname }}'
|
|
...
|
|
|