weareinteractive.environment

Ansible weareinteractive.environment Role

Build Status Galaxy GitHub Tags GitHub Stars

The weareinteractive.environment is an Ansible role that:

  • Adds variables to the /etc/environment file.

Important Note:

The role name has changed. It has moved from franklinkim.environment to weareinteractive.environment due to Ansible Galaxy's naming update.

Installation

To install using ansible-galaxy, run:

$ ansible-galaxy install weareinteractive.environment

You can also use requirements.yml:

- src: weareinteractive.environment

Or clone it with git:

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

Requirements

  • Ansible version must be 2.4 or higher.

Variables

Here is a list of default variables for this role found in defaults/main.yml:

---

# Path to the environment file
environment_file: /etc/environment
# Owner of the environment file
environment_file_owner: root
# Group of the environment file
environment_file_group: root
# A dictionary for configuration parameters (e.g.)
#
# 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: {}

Example Usage

Here is an example playbook:

---

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

Testing

To run tests, use the following commands:

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

Contributing

To contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new feature branch (git checkout -b my-new-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to your branch (git push origin my-new-feature).
  5. Create a new Pull Request.

Note: If you want to update the README.md file, install and run ansible-role:

$ gem install ansible-role
$ ansible-role docgen

License

This project is licensed under the MIT license by We Are Interactive.

Informazioni sul progetto

Adds /etc/environment variables

Installa
ansible-galaxy install weareinteractive.environment
Licenza
mit
Download
342.3k
Proprietario