fix(actions): Adds actions to lint ansible and yaml

This commit is contained in:
Thomas Maurice 2024-02-20 18:17:02 +01:00
parent d20db64817
commit 43e7b6850d
Signed by: thomas
GPG key ID: 1D577F50583032A6
17 changed files with 303 additions and 38 deletions

View file

@ -3,6 +3,6 @@
# in this example you want to invoke this restart handler when the
# configuration of the service changes for example.
- name: "Restart ntp"
service:
ansible.builtin.service:
name: ntp
state: restarted

View file

@ -1,10 +1,10 @@
---
- name: "Install ntp"
apt:
ansible.builtin.apt:
name: ntp
state: present
- name: "Configure ntp"
copy:
ansible.builtin.copy:
src: ntp.conf
dest: /etc/ntp.conf
owner: root
@ -17,8 +17,8 @@
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 service"
ansible.builtin.service:
name: ntp
state: restarted
enabled: true