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:
Chris Hammer 2021-02-19 02:22:32 -05:00
parent 735fb9eb92
commit c80a55fe7d
2 changed files with 10 additions and 3 deletions

View File

@ -27,7 +27,7 @@ stages:
### BEGIN TEMPLATES ###
.tags_template: &tags_template
tags:
- zen-ci-workstation
- zen-ci
.header_template: &header

View File

@ -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