File tree Expand file tree Collapse file tree 2 files changed +35
-2
lines changed Expand file tree Collapse file tree 2 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -399,6 +399,8 @@ __mailman3_system_dependency_packages:
399
399
- libmemcached-dev
400
400
- zlib1g-dev
401
401
- redis
402
+ - net-tools
403
+ - locate
402
404
redhat-7 :
403
405
- rh-python38 # requires EL7+ and CentOS SCL
404
406
redhat-8 :
Original file line number Diff line number Diff line change 85
85
password : " {{ item.password }}"
86
86
state : present
87
87
88
- - name : Multiple databases GRANT ALL PRIVILEGES ON DATABASE to user
88
+ - name : Multiple databases GRANT ALL PRIVILEGES ON DATABASE TO user
89
89
with_items : " {{ mailman3_database_list }}"
90
90
become : true
91
91
become_user : postgres
97
97
type : database
98
98
role : " {{ item.username }}"
99
99
100
- - name : Multiple databases GRANT ALL PRIVILEGES ON SCHEMA public to user
100
+ - name : Multiple databases GRANT ALL PRIVILEGES ON SCHEMA public TO user
101
101
with_items : " {{ mailman3_database_list }}"
102
102
become : true
103
103
become_user : postgres
110
110
objs : public
111
111
role : " {{ item.username }}"
112
112
113
+ - name : Multiple databases GRANT SELECT ON ALL TABLES IN SCHEMA public TO additional users
114
+ with_items : " {{ mailman3_database_list }}"
115
+ become : true
116
+ become_user : postgres
117
+ vars :
118
+ ansible_ssh_pipelining : true
119
+ community.postgresql.postgresql_privs :
120
+ db : " {{ item.name }}"
121
+ privs : SELECT
122
+ type : table
123
+ schema : public
124
+ objs : ALL_IN_SCHEMA
125
+ role : " {{ item.additional_readonly_users }}"
126
+ when : item.additional_readonly_users is defined
127
+
128
+ - name : Multiple databases ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO additional users
129
+ with_items : " {{ mailman3_database_list }}"
130
+ become : true
131
+ become_user : postgres
132
+ vars :
133
+ ansible_ssh_pipelining : true
134
+ community.postgresql.postgresql_privs :
135
+ db : " {{ item.name }}"
136
+ privs : SELECT
137
+ type : default_privs
138
+ schema : public
139
+ objs : TABLES
140
+ role : " {{ item.additional_readonly_users }}"
141
+ when : item.additional_readonly_users is defined
142
+
143
+
113
144
- name : Multiple databases configure pg_hba
114
145
with_items : " {{ mailman3_database_list }}"
115
146
ansible.builtin.lineinfile :
You can’t perform that action at this time.
0 commit comments