https://github.com/yoctol/ansible-env-file
Role to render env file with ease.
https://github.com/yoctol/ansible-env-file
Last synced: 3 months ago
JSON representation
Role to render env file with ease.
- Host: GitHub
- URL: https://github.com/yoctol/ansible-env-file
- Owner: Yoctol
- License: mit
- Created: 2016-08-31T07:26:06.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-08T14:15:34.000Z (about 8 years ago)
- Last Synced: 2025-11-21T06:03:52.799Z (7 months ago)
- Size: 10.7 KB
- Stars: 3
- Watchers: 11
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Role Name
=========
Role to render env file with ease.
Requirements
------------
Ansible >= 1.2
Role Variables
--------------
```yaml
# Env object to make env file with.
env: {}
# Required, the path where dockerfile to be rendered on the host.
dest: ~/env-file
# Optional template arguments, which are the args of template module except `src`.
# If not set, default template settings are used.
# Check http://docs.ansible.com/ansible/template_module.html.
owner:
group:
mode:
backup:
force:
validate:
selevel:
serole:
setype:
seuser:
```
Example Playbook
----------------
```yaml
- hosts: servers
roles:
- role: env_file
dest: ~/env-file
template_options: owner=root mode=u=rw,g=r,o=r
```
License
-------
MIT
Author Information
------------------
Yoctol Info Inc.