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'
|