updated time state

This commit is contained in:
Paul 2023-06-27 11:45:06 +02:00
parent 1a38f6afa5
commit 426d5a7caa
2 changed files with 6 additions and 1 deletions

View File

@ -1,9 +1,9 @@
--- ---
include: include:
- .install - .install
{%- if not salt['grains.get']('container') %}
- .timezone - .timezone
- .config - .config
- .service - .service
{%- if not salt['grains.get']('container') %}
- .timeupdate - .timeupdate
{%- endif %} {%- endif %}

5
states/time/timefix.sls Normal file
View File

@ -0,0 +1,5 @@
---
{%- from "time/map.jinja" import time with context %}
time-fix-rtc:
cmd.run:
- name: timedatectl set-local-rtc 1 --adjust-system-clock