update file for adding lab
This commit is contained in:
23
lamp_ubuntu2204_2hosts_withroles/roles/common/tasks/main.yml
Normal file
23
lamp_ubuntu2204_2hosts_withroles/roles/common/tasks/main.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
# This playbook contains common plays that will be run on all nodes.
|
||||
|
||||
- name: Install ntp
|
||||
apt:
|
||||
name: ntp
|
||||
update_cache: true
|
||||
state: present
|
||||
tags: ntp
|
||||
|
||||
- name: Configure ntp file
|
||||
template:
|
||||
src: ntp.conf.j2
|
||||
dest: /etc/ntp.conf
|
||||
tags: ntp
|
||||
notify: restart ntp
|
||||
|
||||
- name: Start the ntp service
|
||||
service:
|
||||
name: ntp
|
||||
state: started
|
||||
enabled: yes
|
||||
tags: ntp
|
||||
Reference in New Issue
Block a user