More content and playbooks

* more readme.md content
* imported basic roles
* commented said basic roles
* trimmed down playbooks to be understandable
* update requirements.txt deps
This commit is contained in:
Thomas Maurice 2023-01-11 11:06:32 +01:00
parent 23b521f4fb
commit 2a067a2fe4
Signed by: thomas
GPG key ID: 1A55753096B00112
22 changed files with 491 additions and 0 deletions

24
roles/ntp/tasks/main.yml Normal file
View file

@ -0,0 +1,24 @@
---
- name: "Install ntp"
apt:
name: ntp
state: present
- name: "Configure ntp"
copy:
src: ntp.conf
dest: /etc/ntp.conf
owner: root
group: root
mode: "644"
# notify is going to invoke the "Restart ntp" handler defined in
# the roles/ntp/handlers/main.yml file. Basically it says that
# you want to restart the ntp service every time the configuratio
# changes
notify: "Restart ntp"
# Here you say that you want the NTP service to be restarted as well
# as enabled on boot.
- name: "ntp service"
service:
name: ntp
state: restarted
enabled: true