Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.3.1 Fails when time_sync_tool is systemd-timesyncd #68

Closed
Jason-Hendry opened this issue Sep 8, 2023 · 0 comments
Closed

2.1.3.1 Fails when time_sync_tool is systemd-timesyncd #68

Jason-Hendry opened this issue Sep 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Jason-Hendry
Copy link
Contributor

Jason-Hendry commented Sep 8, 2023

Describe the Issue
Role fails when ubtu22cis_time_sync_tool: "systemd-timesyncd" with error "'state' cannot be specified on a template"

Expected Behavior
Role completes without errors

Actual Behavior
Role fails

Control(s) Affected
2.1.3.1

Environment (please complete the following information):

  • branch being used: devel
  • Ansible Version: 2.15.3
  • Host Python Version: 3.10.12
  • Ansible Server Python Version: 3.10.12
  • Additional Details:

Additional Notes

TASK [UBUNTU22-CIS : 2.1.3.1 | PATCH | Ensure systemd-timesyncd configured with authorized timeserver | sources] ***************************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NoneType: None
failed: [misp] (item=etc/systemd/timesyncd.conf.d/50-timesyncd.conf) => {"ansible_loop_var": "item", "changed": false, "item": "etc/systemd/timesyncd.conf.d/50-timesyncd.conf", "msg": "'state' cannot be specified on a template"}

Possible Solution
Remove state: present from config

@Jason-Hendry Jason-Hendry added the bug Something isn't working label Sep 8, 2023
uk-bolly added a commit that referenced this issue Sep 8, 2023
…d-timesyncd

fix: #68 Role fails when ubtu22cis_time_sync_tool: "systemd-timesyncd…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant