This is a simple wrapper role around file Ansible module, which lets you manage (create, modify or remove) directories using inventory variables, including creation on multiple hosts at once.


This role requires at least Ansible v1.7.0. To install it, run:

ansible-galaxy install debops.directories

Role variables

List of default variables available in the inventory:


# List of global directories
directories_list: []

  #- path: '/tmp/directory'             # required
  #  state: 'directory'
  #  owner: 'root'
  #  group: 'root'
  #  mode: '0755'

# List of directories in a host group
directories_group_list: []

# List of directories on a specific host
directories_host_list: []

Authors and license

debops.directories role was written by:

License: GPLv3