environment

Ansible weareinteractive.environment role

Build Status Galaxy GitHub Tags GitHub Stars

weareinteractive.environment is an Ansible role which:

  • adds /etc/environment variables

Note:

Since Ansible Galaxy switched all role names to the organization name, this role has moved from franklinkim.environment to weareinteractive.environment!

Installation

Using ansible-galaxy:

$ ansible-galaxy install weareinteractive.environment

Using requirements.yml:

- src: weareinteractive.environment

Using git:

$ git clone https://github.com/weareinteractive/ansible-environment.git weareinteractive.environment

Dependencies

  • Ansible >= 2.4

Variables

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
#   PATH: "/your/path:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games/"
environment_config: {}

Usage

This is an example playbook:

---

- hosts: all
  roles:
    - weareinteractive.environment
  vars:
    environment_config:
      LC_ALL: C

Testing

$ git clone https://github.com/weareinteractive/ansible-environment.git
$ cd ansible-environment
$ make test

Contributing

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.

  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

Note: To update the README.md file please install and run ansible-role:

$ gem install ansible-role
$ ansible-role docgen

License

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

About

Adds /etc/environment variables

Install
ansible-galaxy install weareinteractive/ansible-environment
GitHub repository
License
mit
Downloads
279867