franklinkim.environment
is an Ansible role which:
- adds
/etc/environment
variables
Using ansible-galaxy
:
$ ansible-galaxy install franklinkim.environment
Using requirements.yml
:
- src: franklinkim.environment
Using git
:
$ git clone https://github.com/weareinteractive/ansible-environment.git franklinkim.environment
- Ansible >= 2.0
Here is a list of all the default variables for this role, which are also available in defaults/main.yml
.
---
# Path to the environment file
environment_file: /etc/environment
# The environment file owner
environment_file_owner: root
# The environment file group
environment_file_group: root
# A dictionary of config parameters i.e
#
# environment_config:
# LC_ALL: en_US.UTF-8
environment_config:
This is an example playbook:
---
- hosts: all
roles:
- franklinkim.environment
vars:
environment_config:
LC_ALL: C
$ git clone https://github.com/weareinteractive/ansible-environment.git
$ cd ansible-environment
$ make test
In lieu of a formal style guide, 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
Note: To update the README.md
file please install and run ansible-role
:
$ gem install ansible-role
$ ansible-role docgen
Copyright (c) We Are Interactive under the MIT license.