mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
16 lines
366 B
YAML
16 lines
366 B
YAML
|
- name: set timezone to Etc/UTC
|
||
|
timezone:
|
||
|
name: Etc/UTC
|
||
|
|
||
|
- name: set timezone to Australia/Brisbane
|
||
|
timezone:
|
||
|
name: Australia/Brisbane
|
||
|
register: timezone_set
|
||
|
|
||
|
- name: ensure timezone changed
|
||
|
assert:
|
||
|
that:
|
||
|
- timezone_set.changed
|
||
|
- timezone_set.diff.after.name == 'Australia/Brisbane'
|
||
|
- timezone_set.diff.before.name == 'Etc/UTC'
|