Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- guests/site.yml | 1 + guests/tasks/services.yml | 15 +++++++++++++++ guests/vars/mappings.yml | 3 +++ guests/vars/projects/base.yml | 1 + 4 files changed, 20 insertions(+) create mode 100644 guests/tasks/services.yml diff --git a/guests/site.yml b/guests/site.yml index 1b9c180..869291d 100644 --- a/guests/site.yml +++ b/guests/site.yml @@ -31,6 +31,7 @@ # Configure environment. Needs to happen after installing base packages - include: tasks/bootloader.yml + - include: tasks/services.yml - include: tasks/compat.yml - include: tasks/users.yml diff --git a/guests/tasks/services.yml b/guests/tasks/services.yml new file mode 100644 index 0000000..81e282a --- /dev/null +++ b/guests/tasks/services.yml @@ -0,0 +1,15 @@ +--- +- set_fact: + chrony: chrony + +- set_fact: + chrony: chronyd + when: + - package_format != 'deb' + +- name: 'Enable services' + service: + name: '{{ item }}' + enabled: yes + with_items: + - '{{ chrony }}' diff --git a/guests/vars/mappings.yml b/guests/vars/mappings.yml index d94d648..cb44b3d 100644 --- a/guests/vars/mappings.yml +++ b/guests/vars/mappings.yml @@ -68,6 +68,9 @@ mappings: default: check rpm: check-devel + chrony: + default: chrony + cppi: Fedora: cppi FreeBSD: cppi diff --git a/guests/vars/projects/base.yml b/guests/vars/projects/base.yml index 94644e4..a0483d8 100644 --- a/guests/vars/projects/base.yml +++ b/guests/vars/projects/base.yml @@ -5,6 +5,7 @@ packages: - autopoint - bash - ccache + - chrony - cppi - gcc - gettext -- 2.14.3 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list