mm0.touch
Ansible Role: Touch v1.0
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
mm0 on github
Install
ansible-galaxy install mm0.touchLicense
Unknown
Downloads
88
Owner
