From 5965d6290e2ae53b36131dcdfe64d8973008ba79 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Tue, 30 May 2023 14:20:34 +0800 Subject: [PATCH] add all sol VMs to inventory & install+enable chrony by def --- all/playbook.yaml | 6 ++++++ inventory.yml | 28 ++++++++++++++++++++++++++-- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/all/playbook.yaml b/all/playbook.yaml index 3df7675..769401b 100644 --- a/all/playbook.yaml +++ b/all/playbook.yaml @@ -15,11 +15,17 @@ - python3-pip - python3-passlib - vnstat + - chrony - name: Enable VNStat service service: name: vnstat enabled: yes state: started + - name: Enable Chrony (NTP) service + service: + name: chrony + enabled: yes + state: started - name: Add users hosts: all diff --git a/inventory.yml b/inventory.yml index 8b48475..aeefc49 100644 --- a/inventory.yml +++ b/inventory.yml @@ -4,8 +4,32 @@ all: hosts: core: ansible_host: soleil.projectsegfau.lt - ansible_user: user - ansible_port: 2270 + ansible_user: core + ansible_port: 2271 + port: 22 + ansible_become: yes # Run everything as root + docker: + ansible_host: soleil.projectsegfau.lt + ansible_user: docker + ansible_port: 2271 + port: 22 + ansible_become: yes # Run everything as root + lxc: + ansible_host: soleil.projectsegfau.lt + ansible_user: lxc + ansible_port: 2271 + port: 22 + ansible_become: yes # Run everything as root + db: + ansible_host: soleil.projectsegfau.lt + ansible_user: db + ansible_port: 2271 + port: 22 + ansible_become: yes # Run everything as root + backwards: + ansible_host: soleil.projectsegfau.lt + ansible_user: backwards + ansible_port: 2271 port: 22 ansible_become: yes # Run everything as root privfrontends: