mm0.directory

Ansible Role: Directory v1.0

Build Status

This Ansible role is used to create a directory using the file module.

Sometimes you may need to create a directory while running different roles. This role can help you do that since there isn’t a built-in method for it.

Also see: ansible-role-touch

Requirements

No special requirements.

Role Variables

Here are the available variables, along with their default values:

owner: ubuntu # The owner of the directory created
group: ubuntu # The group of the directory
mode: 644 # The permissions for the directory
directories: # A list of directories to create

Dependencies

None

Example Playbook

- hosts: webservers
  roles:
  - { role: ansible-role-directory,
      directories: ["/var/log/mylog", "/var/log/mylog.2"],
      owner: ubuntu,
      group: ubuntu,
      mode: "0755"
    }

License

BSD-2

Author Information

Matt Margolin

mm0 on GitHub

Informazioni sul progetto

An Ansible role that simply creates one or more directories

Installa
ansible-galaxy install mm0.directory
Licenza
Unknown
Download
192
Proprietario