mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
366 B
YAML
16 lines
366 B
YAML
7 years ago
|
- 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'
|