Created
July 8, 2021 19:59
-
-
Save nleiva/1c56e8b686a9956a776edf2cdf6aff11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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