summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-04-30 09:19:17 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-30 09:19:17 +0000
commit76be40b0c8651b276ceed260936c6a8cf103520d (patch)
tree61108d20f6f76240f3f0f47fb845d1fc29432cac /ansible
parentfdec88ed10910485efc53e1e85b678a2f1a1180e (diff)
parent0182fdb6dff2df0d7629ce5801ace446595f7575 (diff)
Merge "Adding Ubuntu support in Ansible - chrony role"
Diffstat (limited to 'ansible')
-rw-r--r--ansible/infrastructure.yml4
-rw-r--r--ansible/roles/chrony/tasks/main.yml6
2 files changed, 8 insertions, 2 deletions
diff --git a/ansible/infrastructure.yml b/ansible/infrastructure.yml
index 7fdbd2e1..2322c8bb 100644
--- a/ansible/infrastructure.yml
+++ b/ansible/infrastructure.yml
@@ -8,20 +8,20 @@
- 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:
diff --git a/ansible/roles/chrony/tasks/main.yml b/ansible/roles/chrony/tasks/main.yml
index 69a11587..ae95c8e7 100644
--- a/ansible/roles/chrony/tasks/main.yml
+++ b/ansible/roles/chrony/tasks/main.yml
@@ -1,4 +1,10 @@
---
+- 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'