mm0.touch

Ansible Role: Touch v1.0

Build Status

An Ansible role that simply runs the touch module.

Occassionally, you will need to touch a file between role executions, there is no built-in way to do this, instead use this role in between.

See Also: ansible-role-directory

Requirements

None

Role Variables

Available variables are listed below, along with default values:

owner: ubuntu # owner of final directory uploaded remotely
group: ubuntu 
mode: 644 # mode for remote directory
files: # a list of files to touch

Dependencies

None

Example Playbook

- hosts: webservers
  roles:
  - { role: ansible-role-touch,
      files: ["/var/log/mylog","/var/log/mylog.2""],
      owner: ubuntu,
      group: ubuntu,
      mode: "0755"
    }

License

BSD-2

Author Information

Matt Margolin

mm0 on github

About

An Ansible role that simply touches a list of files

Install
ansible-galaxy install mm0.touch
GitHub repository
License
Unknown
Downloads
88