JohnHammond / ignition_key

This is a small BASH script to quickly setup all the tools I would want and need on a new machine.
143 stars 56 forks source link

Add bashrc commands to ansible playbook #4

Open trevorbryant opened 4 years ago

trevorbryant commented 4 years ago

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