weareinteractive.files
Ansible Files Role
filesis an ansible role which:
- manages files
Installation
Using ansible-galaxy:
$ ansible-galaxy install franklinkim.files
Using requirements.yml:
- src: franklinkim.files
Using git:
$ git clone https://github.com/weareinteractive/ansible-files.git franklinkim.files
Dependencies
- Ansible >= 1.9
Variables
Here is a list of all the default variables for this role, which are also available in defaults/main.yml.
# files:
# - path: /etc/foo.conf
# state: touch
# mode: "u+rw,g-wx,o-rwx"
#
# list of file definitions (http://docs.ansible.com/file_module.html)
files: files
Example playbook
- hosts: all
sudo: yes
roles:
- franklinkim.files
vars:
files:
- path: /tmp/foo.conf
state: touch
mode: "u+rw,g-wx,o-rwx"
Testing
$ git clone https://github.com/weareinteractive/ansible-files.git
$ cd ansible-files
$ vagrant up
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
License
Copyright (c) We Are Interactive under the MIT license.
Install
ansible-galaxy install weareinteractive.filesLicense
mit
Downloads
109
Owner
