Set system hostname

This commit is contained in:
Ryan Cavicchioni 2019-10-27 18:38:54 -05:00
parent d07e73ac4c
commit 6622e3299d
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -6,6 +6,15 @@
- "{{ ansible_distribution }}.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
package:
name: "{{ item }}"