postgres psql -c 'GRANT CREATE ON TABLESPACE pg_global TO postgres_exporter;'我做了最后三条命令,但我不确定。- name: GRANT EXECUTE ON FUNCTION pg_ls_logdir() TO postgres_exporter
community.postgr
我已经在Postgres中扮演了一个角色,也就是readonly。它对所有数据库中的所有表具有只读访问权限。 我想将这个角色附加到一个用户,这样他/她也可以在一个命令中获得对所有表的只读访问权限。如何使用ansible的postgresql_user模块执行以下命令?mydb=> grant readonly to dev_username; 编辑:添加更多详细信息 这就是我尝试过的 - name: Postgres login_hostmain()\n Fi