netbox: fix DB priviledge settings for current ansible versions
This commit is contained in:
parent
d9775e2071
commit
0653790816
@ -27,19 +27,17 @@
|
|||||||
- postgresql
|
- postgresql
|
||||||
- python3-psycopg2
|
- python3-psycopg2
|
||||||
|
|
||||||
- name: Configure PostgreSQL database
|
- name: Configure PostgreSQL user
|
||||||
postgresql_db:
|
postgresql_user:
|
||||||
name: "{{ netbox_dbname }}"
|
name: "{{ netbox_dbuser }}"
|
||||||
|
password: "{{ netbox_dbpass }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: postgres
|
become_user: postgres
|
||||||
|
|
||||||
- name: Configure PostgreSQL user
|
- name: Configure PostgreSQL database
|
||||||
postgresql_user:
|
postgresql_db:
|
||||||
db: "{{ netbox_dbname }}"
|
name: "{{ netbox_dbname }}"
|
||||||
name: "{{ netbox_dbuser }}"
|
owner: "{{ netbox_dbuser }}"
|
||||||
password: "{{ netbox_dbpass }}"
|
|
||||||
priv: ALL
|
|
||||||
state: present
|
|
||||||
become: true
|
become: true
|
||||||
become_user: postgres
|
become_user: postgres
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user