capabilities

Collection: community.general

Full Name: parallax.community.general.capabilities

Aliases: community.general.capabilities, capabilities

Synopsis

Set and remove Linux file capabilities

Parameters

NameTypeRequiredDefaultDescription
pathstringyesPath to the file for which to manage capabilities
capabilitystringyesCapability to set (e.g. cap_net_bind_service+ep)
statestringpresentWhether the capability should be present or absent

Example

- name: Let the exporter bind to a privileged port
  capabilities:
    path: /usr/local/bin/node_exporter
    capability: cap_net_bind_service=+ep
    state: present