add all sol VMs to inventory & install+enable chrony by def

This commit is contained in:
Arya 2023-05-30 14:20:34 +08:00
parent 1b5054c5f8
commit 5965d6290e
Signed by: arya
GPG Key ID: 842D12BDA50DF120
2 changed files with 32 additions and 2 deletions

View File

@ -15,11 +15,17 @@
- python3-pip - python3-pip
- python3-passlib - python3-passlib
- vnstat - vnstat
- chrony
- name: Enable VNStat service - name: Enable VNStat service
service: service:
name: vnstat name: vnstat
enabled: yes enabled: yes
state: started state: started
- name: Enable Chrony (NTP) service
service:
name: chrony
enabled: yes
state: started
- name: Add users - name: Add users
hosts: all hosts: all

View File

@ -4,8 +4,32 @@ all:
hosts: hosts:
core: core:
ansible_host: soleil.projectsegfau.lt ansible_host: soleil.projectsegfau.lt
ansible_user: user ansible_user: core
ansible_port: 2270 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 port: 22
ansible_become: yes # Run everything as root ansible_become: yes # Run everything as root
privfrontends: privfrontends: