Skip to content

Commit d02814a

Browse files
authored
Remove timezone validation (#1618)
NTP role will fail on its own with a helpful message: ``` TASK [ntp : Set timezone.] ***************************************************** fatal: [default]: FAILED! => {"changed": false, "msg": "Error message:\ngiven timezone \"lol_nope\" is not available"} ```
1 parent 503edb4 commit d02814a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

roles/common/tasks/main.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,6 @@
9191
loop_control:
9292
label: "{{ item.key }}"
9393

94-
- name: Validate timezone variable
95-
stat:
96-
path: /usr/share/zoneinfo/{{ ntp_timezone }}
97-
register: timezone_path
98-
changed_when: false
99-
100-
- name: Explain timezone error
101-
fail:
102-
msg: "{{ ntp_timezone }} is not a valid timezone. For a list of valid timezones, check https://php.net/manual/en/timezones.php"
103-
when: not timezone_path.stat.exists
104-
10594
- name: Add myhostname to nsswitch.conf to ensure resolvable hostname
10695
lineinfile:
10796
backrefs: yes

0 commit comments

Comments
 (0)