Skip to content

Commit

Permalink
correct timezone issues with NetBox <= 3.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoss committed Feb 17, 2023
1 parent fd18f8e commit 6fcb273
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ lint: |
platforms:
- name: instance
image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2204}-ansible:latest"
<<<<<<< HEAD
command: ${MOLECULE_DOCKER_COMMAND:-""}
=======
command: ${MOLECULE_DOCKER_COMMAND:-"/sbin/init"}
capabilities:
- SYS_ADMIN
>>>>>>> 317e9fe... squash
network_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
Expand Down
7 changes: 5 additions & 2 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
- 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"
line: "{{ item }}"
regexp: "^{{ item }}"
owner: "{{ netbox_user }}"
mode: '0644'
create: yes
loop:
- tzdata==2022.1
- pytz==2022.1
when: netbox_version_tag <= 'v3.2.9'

# version 3.0.10 started throwing a warning during superuser creation
Expand Down

0 comments on commit 6fcb273

Please sign in to comment.