Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/KamilLelonek/Ansible-Ruby-DirectoryStatus
Ruby library for Ansible that checks given directory status
https://github.com/KamilLelonek/Ansible-Ruby-DirectoryStatus
Last synced: 3 months ago
JSON representation
Ruby library for Ansible that checks given directory status
- Host: GitHub
- URL: https://github.com/KamilLelonek/Ansible-Ruby-DirectoryStatus
- Owner: KamilLelonek
- Created: 2014-12-16T16:31:53.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-31T15:22:31.000Z (about 10 years ago)
- Last Synced: 2024-08-03T14:09:48.097Z (7 months ago)
- Language: Ruby
- Homepage: https://medium.com/@KamilLelonek/ansible-for-rubyists-22533bd98
- Size: 176 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible-Ruby-DirectoryStatus
This is an example of ruby library to be executed by Ansible.
## Setup
vagrant up
## Run
vagrant provision
## Usage
You can find the usage by looking either at `status.yml` or at library code itself (`library/status`).
## Description
You can call action for given path:
- name: call status action
status: dir_path=/
register: status_of_path
The `status_of_path` will be the following json:{
exists: true/false
directory: true/false (if file or when not exists)
empty: true/false/none (in case of file)
}