0.1.3-DEV-20210219-022129
------------------------- * ADD: - add support for centos 8 * MODIFY: - update .gitlab-ci.yml so jobs will run on the correct ci host
This commit is contained in:
parent
735fb9eb92
commit
c80a55fe7d
@ -27,7 +27,7 @@ stages:
|
||||
### BEGIN TEMPLATES ###
|
||||
.tags_template: &tags_template
|
||||
tags:
|
||||
- zen-ci-workstation
|
||||
- zen-ci
|
||||
|
||||
|
||||
.header_template: &header
|
||||
|
@ -6,9 +6,16 @@
|
||||
when: ansible_distribution == "Debian"
|
||||
|
||||
|
||||
- name: set package and service for centos 8
|
||||
set_fact:
|
||||
ntp_pkg : chrony
|
||||
ntp_service : chronyd
|
||||
when: ansible_distribution_major_version == "8"
|
||||
|
||||
|
||||
- name: install ntp if not present
|
||||
package:
|
||||
name : ntp
|
||||
name : "{{ ntp_pkg | default('ntp') }}"
|
||||
state : present
|
||||
|
||||
|
||||
@ -22,7 +29,7 @@
|
||||
notify: restart ntpd
|
||||
|
||||
|
||||
- name: enable/start ntpd
|
||||
- name: enable/start ntpd or chrony
|
||||
service:
|
||||
name: "{{ ntp_service }}"
|
||||
enabled: yes
|
||||
|
Loading…
x
Reference in New Issue
Block a user