Extending ansible playbooks of ubuntu support.
Change the order in role calls.
Chrony role was moved due to its absence in Ubuntu distribution.
Firstly is necessary to initialize package repository and after that install Chrony.
Issue-ID: OOM-1671
Signed-off-by: Jan Benedikt <j.benedikt@partner.samsung.com>
Change-Id: Icadf8e106fba4a369148db0959dcac07a79257c2
- name: Setup infrastructure servers
hosts: infrastructure
roles:
- - chrony
- package-repository-check
- certificates
- docker
- dns
- vncserver
- nginx
+ - chrony
- nexus
- name: Setup base for Kubernetes nodes
hosts: kubernetes:!infrastructure
roles:
- - chrony
- package-repository-check
+ - chrony
- docker
tasks:
- include_role:
---
+- name: Install Chrony - Ubuntu
+ package:
+ name: "chrony"
+ state: present
+ when: ansible_distribution in ["Ubuntu","Debian"]
+
- name: Check if server mode
set_fact:
chrony_mode: 'server'