ignition_key icon indicating copy to clipboard operation
ignition_key copied to clipboard

Add bashrc commands to ansible playbook

Open trevorbryant opened this issue 5 years ago • 0 comments

Need to configure the custom lines into .bashrc. Currently have the below.

- name: update-bashrc
  hosts: localhost
  connection: local
  become: true
  ignore_errors: true
  tasks:
    - name: run commands
      command: "{{ item }}"
      with_items:
        - "echo export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$' >> ~/.bashrc"
        - "echo export GOPATH=\$HOME/.go/ >> ~/.bashrc"
        - "echo export GOBIN=\$HOME/.go/bin >> ~/.bashrc"
        - "echo export PATH=\$PATH:\$GOBIN >> ~/.bashrc"
  tags:
    - update-bashrc

trevorbryant avatar Oct 15 '19 19:10 trevorbryant