+ change starship command prompt sign for non privileged user in separate yadm playbook

This commit is contained in:
2024-09-22 17:49:23 +03:00
parent 051b7778d6
commit 3243c81b3d
2 changed files with 5 additions and 1 deletions

View File

@ -9,4 +9,5 @@ keyring__keyserver: hkp://keyserver.ubuntu.com:80
secret__levels: '.'
site_name: '{{ initial_site_name | d(lxc_host) }}'
home_user: '{{ (ansible_user != "root") | ternary(ansible_user, site_name) }}'
...

View File

@ -4,8 +4,11 @@
- name: Clone dotfiles repo
shell: yadm clone --bootstrap https://vcs.wpstudio.ru/gitea/dotfiles.git
# For manual change: sed -i 's/#/\\$/g' ${HOME}/.config/starship.toml
- name: 'Change character for non-root user'
become: false
become_user: root
shell: |
sed -i 's/#/\\$/g' /home/{{ ansible_user_id }}/.config/starship.toml
sed -i 's/#/\\$/g' /home/{{ home_user }}/.config/starship.toml
args:
executable: /bin/bash