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