小编han*_*rik的帖子

Ansible"postgresql_user"模块"priv"参数语法清除

有关如何定义用户权限的postgresql_user模块的文档与格式有关.格式在选项表中描述如下:

priv | PostgreSQL privileges string in the format: table:priv1,priv2
Run Code Online (Sandbox Code Playgroud)

但是,下面给出的示例使用另一种格式

priv: "CONNECT/products:ALL"
priv: "ALL/products:ALL"
# Example privileges string format
INSERT,UPDATE/table:SELECT/anothertable:ALL
Run Code Online (Sandbox Code Playgroud)

博客文章Ansible Loves PostgreSQL提到了另一种格式:

priv: Privileges in “priv1/priv2” or table privileges in “table:priv1,priv2,…” format
Run Code Online (Sandbox Code Playgroud)

我在创建具有只读访问权限的用户时遇到问题,即对所有表的SELECT权限.

有人能否对正确使用的格式有所了解,例如为用户提供所有表的只读访问权限?

postgresql privileges ansible

11
推荐指数
1
解决办法
2138
查看次数

标签 统计

ansible ×1

postgresql ×1

privileges ×1