environment_variables

Ansible Role - environment_variables

Build Status

Define environment variables on Linux.

ref https://wiki.archlinux.org/index.php/environment_variables

Requirements

None.

Role Variables

None.

Dependencies

None.

Example Playbook

- hosts: servers
  roles:
    - role: vkill.environment_variables
      # With /etc/environment
      env_global_pam_data:
        FOO_ONE: BAR_ONE
      # With /etc/profile.d/env_vars_created_by_ansible.sh
      env_global_login_shell_data:
        FOO_TWO: BAR_TWO
      env_user_username: 'vagrant'
      # With /home/vagrant/.pam_environment
      env_user_pam_data:
        FOO_THREE: BAR_THREE
      # With /home/vagrant/.profile
      env_user_login_shell_data:
        FOO_FOUR: BAR_FOUR

Local Testing

$ cp .versions.conf.example .versions.conf

$ cd .

$ gem install bundler

$ bundle install

$ wget -nc -P vagrant_box http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box

$ kitchen test

# for development

$ kitchen destroy ubuntu

$ kitchen converge ubuntu

$ kitchen verify ubuntu

$ kitchen destroy ubuntu

License

MIT / BSD

Author Information

vkill vkill.net@gmail.com

© 2016

About

Environment variables

Install
ansible-galaxy install vkill/ansible-role-environment_variables
GitHub repository
License
Unknown
Downloads
39
Owner