Skip to content

Commit

Permalink
fix: #161 NTP should be a space-separated list of NTP server host nam…
Browse files Browse the repository at this point in the history
…es or IP addresses, instead of a json encoded list or objects. Also added the section label [Time] to fix the log message "/etc/systemd/timesyncd.conf.d/50-timesyncd.conf:8: Assignment outside of section. Ignoring."

Signed-off-by: Jason Hendry <[email protected]>
  • Loading branch information
Jason-Hendry committed Nov 6, 2023
1 parent 143b047 commit 7fe1318
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/etc/systemd/timesyncd.conf.d/50-timesyncd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# Added as part of ansible-lockdown CIS baseline
# provided by MindPointGroup LLC

NTP={{ ubtu22cis_time_pool }}
[Time]
NTP={% for pool in ubtu22cis_time_pool %}{{ pool.name }} {% endfor %}


FallbackNTP={% for servers in ubtu22cis_time_servers %}{{ servers.name }} {% endfor %}

0 comments on commit 7fe1318

Please sign in to comment.