1.0.0 Release IaaS
This commit is contained in:
20
ansible/roles/common/tasks/node/set_timesyncd.yaml
Normal file
20
ansible/roles/common/tasks/node/set_timesyncd.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: Create timesyncd.conf.d
|
||||
ansible.builtin.file:
|
||||
path: "/etc/systemd/timesyncd.conf.d"
|
||||
state: "directory"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
mode: "0755"
|
||||
become: true
|
||||
|
||||
- name: Deploy timesyncd.conf.d/local-ntp.conf
|
||||
ansible.builtin.copy:
|
||||
src: "{{ hostvars['console']['node']['config_path'] }}/node/common/timesyncd/local-ntp.conf"
|
||||
dest: "/etc/systemd/timesyncd.conf.d/local-ntp.conf"
|
||||
owner: "root"
|
||||
group: "systemd-timesync"
|
||||
mode: "0640"
|
||||
become: true
|
||||
notify: "notification_restart_timesyncd"
|
||||
no_log: true
|
||||
Reference in New Issue
Block a user