community / community.general / 3.8.10 / module / capabilities Manage Linux capabilities Authors: Nate Coraor (@natefoo)community.general.capabilities (3.8.10) — module
Install with ansible-galaxy collection install community.general:==3.8.10
collections: - name: community.general version: 3.8.10
This module manipulates files privileges using the Linux capabilities(7) system.
- name: Set cap_sys_chroot+ep on /foo community.general.capabilities: path: /foo capability: cap_sys_chroot+ep state: present
- name: Remove cap_net_bind_service from /bar community.general.capabilities: path: /bar capability: cap_net_bind_service state: absent
path: aliases: - key description: - Specifies the path to the file to be managed. required: true type: str state: choices: - absent - present default: present description: - Whether the entry should be present or absent in the file's capabilities. type: str capability: aliases: - cap description: - Desired capability to set (with operator and flags, if state is C(present)) or remove (if state is C(absent)) required: true type: str