ignition_key
ignition_key copied to clipboard
Add bashrc commands to ansible playbook
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