2019-03-09 00:31:38 +00:00
|
|
|
---
|
2019-03-16 20:35:27 +00:00
|
|
|
- name: gather OS specific variables
|
2019-08-25 02:07:53 +00:00
|
|
|
include_vars: "{{ item }}"
|
2019-03-16 20:35:27 +00:00
|
|
|
with_first_found:
|
|
|
|
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml"
|
|
|
|
- "{{ ansible_distribution }}.yaml"
|
|
|
|
- "{{ ansible_os_family }}.yaml"
|
|
|
|
|
2019-10-27 23:38:54 +00:00
|
|
|
- name: run os specific tasks
|
|
|
|
include: "{{ item }}"
|
|
|
|
with_first_found:
|
|
|
|
- "{{ ansible_os_family }}.yaml"
|
|
|
|
|
|
|
|
- name: set hostname
|
|
|
|
hostname:
|
|
|
|
name: "{{ hostname | default(inventory_hostname) }}"
|
|
|
|
|
2019-03-16 20:35:27 +00:00
|
|
|
- name: configure system timezone
|
|
|
|
timezone:
|
|
|
|
name: "{{ timezone }}"
|
|
|
|
notify: restart cron
|
2019-03-27 07:08:13 +00:00
|
|
|
|
|
|
|
# vim:ft=yaml.ansible:
|