/ansible-direnv

ansible role install direnv

Apache License 2.0Apache-2.0

Build Status Run Status Coverage Badge

install dirnev

ansible-galaxy install YasushiKobayashi.direnv

ansible role initial setting

  • cenos6
  • amazone-linux

set bash

eval "$(direnv hook bash)"
$ echo 'eval "$(direnv hook bash)"' >>  ~/.bash_profile
$ echo 'eval "$(direnv hook bash)"' >>  ~/.bashrc
- name: set direnv bash_profile
  become: false
  lineinfile:
    dest: ~/.bash_profile
    line: 'eval "$(direnv hook bash)"'

- name: set direnv bashrc
  become: false
  lineinfile:
    dest: ~/.bashrc
    line: 'eval "$(direnv hook bash)"'