Skip to content

Instantly share code, notes, and snippets.

@flavienbwk
Created November 26, 2022 17:10
Show Gist options
  • Save flavienbwk/25edb47cb9a4c406fd08de07550e4111 to your computer and use it in GitHub Desktop.
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.
- 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