Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions ansible/tasks/setup-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,25 @@
owner: 'root'
group: 'root'

- name: configure NTP client
when: stage2
block:
- name: ensure conf directory exists
ansible.builtin.file:
path: /etc/systemd/timesyncd.conf.d
state: directory
mode: '0755'

- name: configure NTP server
ansible.builtin.copy:
content: |
[Time]
NTP=169.254.169.123 fd00:ec2::123
dest: /etc/systemd/timesyncd.conf.d/10-aws-time-sync.conf
mode: '0644'
owner: root
group: root

- name: Configure Apt
ansible.builtin.copy:
content: |
Expand Down
Loading