Browse Source

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

master
dimti 3 months ago
parent
commit
3243c81b3d
  1. 1
      group_vars/all.yml
  2. 5
      playbooks/own/yadm.yml

1
group_vars/all.yml

@ -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) }}'
...

5
playbooks/own/yadm.yml

@ -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
Loading…
Cancel
Save