Files
ansible-role-debian_common/tasks/color-shell.yml

15 lines
468 B
YAML
Raw Normal View History

2024-10-26 16:23:45 +02:00
---
# Note the use of "ansible_remote_tmp" - to prevent WARNINGS because of becoming an unprivileged user
- name: Force colors in .bashrc
ansible.builtin.lineinfile:
path: "{{ interactive_home }}/.bashrc"
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
state: present
with_items:
- { regexp: "^#?force_color_prompt", line: force_color_prompt=yes }
become: true
become_user: "{{ interactive_user }}"
vars:
ansible_remote_tmp: /tmp