https://github.com/pascal-splotches/ansible-directories
Create pre-defined directory structures.
https://github.com/pascal-splotches/ansible-directories
ansible-role
Last synced: 2 months ago
JSON representation
Create pre-defined directory structures.
- Host: GitHub
- URL: https://github.com/pascal-splotches/ansible-directories
- Owner: pascal-splotches
- License: gpl-3.0
- Created: 2018-11-10T16:45:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-10T21:45:39.000Z (over 7 years ago)
- Last Synced: 2025-10-30T04:44:08.707Z (8 months ago)
- Topics: ansible-role
- Language: Python
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-directories
[](https://travis-ci.com/pascal-splotches/ansible-directories)
[](https://github.com/pascal-splotches/ansible-directories/releases)
[](https://galaxy.ansible.com/pascal_splotches/directories)

[](https://github.com/pascal-splotches/ansible-directories/blob/master/LICENSE)
Create pre-defined directory structures.
## Getting Started
### Role Variables
| Name | Description | Default |
|---------------|----------------------------------------------------------|----------------------------------|
| `users` | The users for whom we provision the relative directories | `[ '{{ ansible_user_id }}' ]` |
| `directories` | The directories to be created | `{ relative: [], absolute: [] }` |
### Example
```YAML
directories:
relative:
- path: directory/path # required
mode: 0700 # optional
absolute:
- path: /directory/path # required
owner: root # optional
mode: 0700 # optional
```
## Dependencies
- _none_
## Built With
- [Ansible](https://www.ansible.com/)
## Versioning
We use [SemVer](https://semver.org/) for versioning. For the versions available, see the [releases on this repository](https://github.com/pascal-splotches/ansible-directories/releases).
## Authors
- Pascal Scheepers <[pascal@splotch.es](mailto:pascal@splotch.es)>
## License
This project is licensed under the GPLv3 License - see the [LICENSE](./LICENSE) file for details.