Skip to content

Commit

Permalink
add workaround for tzdata when NetBox <= 3.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoss committed Aug 19, 2022
1 parent 6eb4b7a commit 0283fd6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
---
# Timezone issues when running upgrade script with versions <= 3.2.9
# https://github.com/netbox-community/netbox/issues/9986
# temporary fix:
- name: configure | add tzdata fix to local_requirements.txt when NetBox <= 3.2.9
ansible.builtin.lineinfile:
path: "{{ netbox_current_path }}/local_requirements.txt"
line: "tzdata==2022.2"
regexp: "^tzdata"
owner: "{{ netbox_user }}"
mode: '0644'
create: yes
when: netbox_version_tag <= 'v3.2.9'

# version 3.0.10 started throwing a warning during superuser creation
# uses the package 'redis-py'
- name: configure | add the HiredisParser local_requirements.txt
Expand Down

0 comments on commit 0283fd6

Please sign in to comment.