weareinteractive.files

Ansible Files Role

Build Status Galaxy GitHub Tags GitHub Stars

files is 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.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Copyright (c) We Are Interactive under the MIT license.

About

Manages file on remote host

Install
ansible-galaxy install weareinteractive.files
GitHub repository
License
mit
Downloads
109