ansible / ansible.builtin / v2.4.3.0-1 / module / capabilities Manage Linux capabilities | "added in version" 1.6 of ansible.builtin" Authors: Nate Coraor (@natefoo) preview | supported by communityansible.builtin.capabilities (v2.4.3.0-1) — module
pip
Install with pip install ansible==2.4.3.0.post1
This module manipulates files privileges using the Linux capabilities(7) system.
# Set cap_sys_chroot+ep on /foo - capabilities: path: /foo capability: cap_sys_chroot+ep state: present
# Remove cap_net_bind_service from /bar - capabilities: path: /bar capability: cap_net_bind_service state: absent
path: default: null description: - Specifies the path to the file to be managed. required: true state: choices: - present - absent default: present description: - Whether the entry should be present or absent in the file's capabilities. capability: aliases: - cap default: null description: - Desired capability to set (with operator and flags, if state is C(present)) or remove (if state is C(absent)) required: true