Skip to content

Instantly share code, notes, and snippets.

@nleiva
Created July 8, 2021 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nleiva/1c56e8b686a9956a776edf2cdf6aff11 to your computer and use it in GitHub Desktop.
Save nleiva/1c56e8b686a9956a776edf2cdf6aff11 to your computer and use it in GitHub Desktop.
- name: Setup custom prompt
ansible.builtin.copy:
src: prompt.sh
dest: /etc/profile.d/prompt.sh
owner: root
group: root
mode: '0644'
- name: Make Ubuntu source the prompt file
ansible.builtin.lineinfile:
path: "/home/{{ ansible_user }}/.bashrc"
line: source /etc/profile.d/prompt.sh
when: ansible_distribution == 'Ubuntu'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment