community.general.pfexec become – 基于配置文件的执行
注意
此 become 插件是 community.general 集合 (版本 10.1.0) 的一部分。
如果您使用的是 ansible
包,则可能已经安装了此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用: ansible-galaxy collection install community.general
。
要在剧本中使用它,请指定: community.general.pfexec
。
概要
此 become 插件允许您的远程/登录用户通过 pfexec 实用程序以其他用户身份执行命令。
参数
参数 |
注释 |
---|---|
Sudo 可执行文件。 默认值: 配置
|
|
传递给 pfexec 的选项。 默认值: 配置
|
|
pfexec 密码。 配置
|
|
您“成为”以执行任务的用户。 此插件忽略此设置,因为 pfexec 使用其自己的 默认值: 配置
|
|
切换是否将 pfexec 调用的命令包装在 选项
配置
|
备注
注意
此插件忽略
become_user
,因为 pfexec 使用其自己的exec_attr
来确定这一点。