forked from FF-RGB/ansible
netbox: fix psycopg dependency to use binary
the C variant will fail to compile
This commit is contained in:
parent
443414cfd1
commit
37b955a65c
@ -74,13 +74,21 @@
|
|||||||
group: "{{ netbox_group }}"
|
group: "{{ netbox_group }}"
|
||||||
recurse: yes
|
recurse: yes
|
||||||
|
|
||||||
|
- name: Fix psycopg variant
|
||||||
|
lineinfile:
|
||||||
|
path: "/opt/netbox-{{ netbox_version }}/requirements.txt"
|
||||||
|
regexp: '^psycopg\[.*,pool\]==(.*)$'
|
||||||
|
line: 'psycopg[binary,pool]==\1'
|
||||||
|
backrefs: yes
|
||||||
|
register: netbox_psycopg_fix
|
||||||
|
|
||||||
- name: Run upgrade script
|
- name: Run upgrade script
|
||||||
command:
|
command:
|
||||||
cmd: ./upgrade.sh
|
cmd: ./upgrade.sh
|
||||||
chdir: "/opt/netbox-{{ netbox_version }}"
|
chdir: "/opt/netbox-{{ netbox_version }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ netbox_user }}"
|
become_user: "{{ netbox_user }}"
|
||||||
when: netbox_unarchive.changed
|
when: netbox_unarchive.changed or netbox_psycopg_fix.changed
|
||||||
|
|
||||||
# TODO - still manual work
|
# TODO - still manual work
|
||||||
# * Create a super user
|
# * Create a super user
|
||||||
|
Loading…
Reference in New Issue
Block a user