--- # Copyright 2020 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. - name: Disable chronyd systemd: enabled: false name: chronyd state: stopped when: - tripleo_timemaster_manage_service|bool - name: Disable ptp4l systemd: enabled: false name: ptp4l state: stopped when: - tripleo_timemaster_manage_service|bool - name: Disable phc2sys systemd: enabled: false name: phc2sys state: stopped when: - tripleo_timemaster_manage_service|bool - name: Install timemaster configuration file template: src: timemaster.conf.j2 dest: "{{ tripleo_timemaster_config_file_location }}" owner: root group: root mode: 0644 - name: Restart timemaster with config systemd: enabled: "{{ (tripleo_timemaster_service_state|default('started') in ['running', 'started']) |bool }}" name: "{{ tripleo_timemaster_service_name }}" state: restarted when: tripleo_timemaster_manage_service|bool