ElaoInfra.acl

Ansible Role Platforms License

Ansible Role: ACL

This role installs the ACL (Access Control List) package.

It is part of the ELAO Ansible stack but can also be used on its own.

Requirements

  • You need Ansible version 1.7.2 or higher.

Dependencies

None.

Installation

For Ansible 2+

Using the Ansible Galaxy command line tool:

ansible-galaxy install elao.acl,2.0

Using an Ansible Galaxy requirements file:

- src:     elao.acl
  version: 2.0

For Ansible 1 (no longer supported)

Using the Ansible Galaxy command line tool:

ansible-galaxy install elao.acl,1.0

Using an Ansible Galaxy requirements file:

- src:     elao.acl
  version: 1.0

Role Handlers

None.

Role Variables

Name Default Type Description
elao_acl_files [] Collection List of files

ACL Configuration

The elao_acl_files variable lets you set ACL information for files, with the following options:

Name Default Type Description
name ~ (required) String The full path of the file or object.
default ~ Boolean If the target is a directory, setting this to yes will make it the default ACL for any new items created inside the directory. It will cause an error if the name is a file.
entity ~ String The user or group to which the ACL applies.
entry ~ String DEPRECATED. The ACL to set or remove. This must be in the format of '::'.
etype ~ String The type of entity for the ACL. Can be user, group, mask, or other.
follow True Boolean Whether to follow symbolic links if one is encountered.
permissions ~ String Permissions to apply or remove; can be a combination of r, w, and x.
state query String Defines if the ACL should be present or not. The query state gets the current ACL without changing it, useful for 'register' operations. Options are 'query', 'present', or 'absent'.

Example

elao_acl_files:
    - name:        /etc/foo.conf
      entity:      www-data
      etype:       user
      permissions: "r"
      state:       present

Example Playbook

    - hosts: servers
      roles:
         - { role: elao.acl }

License

MIT

Author Information

ELAO (http://www.elao.com/)

Informazioni sul progetto

Install acl

Installa
ansible-galaxy install ElaoInfra.acl
Licenza
Unknown
Download
1.2k
Proprietario
All of those roles aren't maintained anymore and we strongly encourage you to switch to our new (maintained and tested) Ansible stack: https://github.com/manala