Set system hostname
This commit is contained in:
parent
d07e73ac4c
commit
6622e3299d
@ -6,6 +6,15 @@
|
|||||||
- "{{ ansible_distribution }}.yaml"
|
- "{{ ansible_distribution }}.yaml"
|
||||||
- "{{ ansible_os_family }}.yaml"
|
- "{{ ansible_os_family }}.yaml"
|
||||||
|
|
||||||
|
- name: run os specific tasks
|
||||||
|
include: "{{ item }}"
|
||||||
|
with_first_found:
|
||||||
|
- "{{ ansible_os_family }}.yaml"
|
||||||
|
|
||||||
|
- name: set hostname
|
||||||
|
hostname:
|
||||||
|
name: "{{ hostname | default(inventory_hostname) }}"
|
||||||
|
|
||||||
- name: install system utilities
|
- name: install system utilities
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user