forked from FF-RGB/ansible
[role/netbox] Add recursive chown task
Recursively update group-/ownership of netbox directory after unpacking the source and requiering modules into venv
This commit is contained in:
parent
09099faaeb
commit
7602303543
@ -55,8 +55,6 @@
|
|||||||
remote_src: yes
|
remote_src: yes
|
||||||
creates: '/opt/netbox-{{ netbox_version }}'
|
creates: '/opt/netbox-{{ netbox_version }}'
|
||||||
|
|
||||||
# TODO user/group/chown?
|
|
||||||
|
|
||||||
- name: Configure netbox
|
- name: Configure netbox
|
||||||
template:
|
template:
|
||||||
src: configuration.py.j2
|
src: configuration.py.j2
|
||||||
@ -70,6 +68,16 @@
|
|||||||
virtualenv: '/opt/netbox-{{ netbox_version }}/venv'
|
virtualenv: '/opt/netbox-{{ netbox_version }}/venv'
|
||||||
virtualenv_command: '/usr/bin/python3 -m venv'
|
virtualenv_command: '/usr/bin/python3 -m venv'
|
||||||
|
|
||||||
|
- name: Netbox file permissions
|
||||||
|
file:
|
||||||
|
path: '/opt/netbox-{{ netbox_version }}'
|
||||||
|
owner: '{{ netbox_user }}'
|
||||||
|
group: '{{ netbox_group }}'
|
||||||
|
mode: preserve
|
||||||
|
state: directory
|
||||||
|
recursive: yes
|
||||||
|
create: no
|
||||||
|
|
||||||
# TODO - still manual work
|
# TODO - still manual work
|
||||||
# * Run Database Migrations
|
# * Run Database Migrations
|
||||||
# * Create a Super User
|
# * Create a Super User
|
||||||
|
Loading…
Reference in New Issue
Block a user