Created
November 26, 2022 17:10
-
-
Save flavienbwk/25edb47cb9a4c406fd08de07550e4111 to your computer and use it in GitHub Desktop.
Dummy example of a playbook defining the datetime and timezone of a server.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Set datetime and timezone | |
hosts: prod-fr-zone-c-server-18 | |
tasks: | |
- name: Set timezone | |
copy: content='Europe/Paris' | |
dest=/etc/timezone | |
- name: Set datetime | |
shell: date --set "25 Sep 2013 15:00:00" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment