Skip to content

Ansible role which adds /etc/environment variables

License

Notifications You must be signed in to change notification settings

Uelb/ansible-environment

 
 

Repository files navigation

Ansible franklinkim.environment role

Build Status Galaxy GitHub Tags GitHub Stars

franklinkim.environment is an Ansible role which:

  • adds /etc/environment variables

Installation

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

Dependencies

  • Ansible >= 2.0

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
environment_config:

Usage

This is an example playbook:

---

- hosts: all
  roles:
    - franklinkim.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

Ansible role which adds /etc/environment variables

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Makefile 100.0%