+ change starship command prompt sign for non privileged user in separate yadm playbook
This commit is contained in:
@ -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) }}'
|
||||
...
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user