fix(actions): Adds actions to lint ansible and yaml
This commit is contained in:
parent
d20db64817
commit
43e7b6850d
17 changed files with 303 additions and 38 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue