diff options
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/infrastructure.yml | 4 | ||||
-rw-r--r-- | ansible/roles/chrony/tasks/main.yml | 6 |
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' |