Configure starship
This commit is contained in:
parent
d85d37d757
commit
0f9663397b
@ -18,17 +18,17 @@
|
|||||||
- name: Install Debian-specific packages
|
- name: Install Debian-specific packages
|
||||||
become: true
|
become: true
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
- ncurses-term
|
- ncurses-term
|
||||||
state: present
|
state: present
|
||||||
- name: Add the user ralsina
|
- name: Add the user ralsina
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: ralsina
|
name: ralsina
|
||||||
create_home: true
|
create_home: true
|
||||||
password_lock: true
|
password_lock: true
|
||||||
shell: /usr/bin/fish
|
shell: /usr/bin/fish
|
||||||
- name: Authorize ssh
|
- name: Authorize ssh
|
||||||
become: true
|
become: true
|
||||||
ansible.posix.authorized_key:
|
ansible.posix.authorized_key:
|
||||||
@ -43,9 +43,24 @@
|
|||||||
state: present
|
state: present
|
||||||
commands: ALL
|
commands: ALL
|
||||||
nopassword: true
|
nopassword: true
|
||||||
- name: Remove users that come with the system
|
- name: Create fish config directory
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /home/ralsina/.config/fish/conf.d
|
||||||
|
recurse: true
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
- name: Get starship installer
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
url: https://starship.rs/install.sh
|
||||||
|
dest: /tmp/starship.sh
|
||||||
|
mode: '0755'
|
||||||
|
- name: Install starship
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.user:
|
ansible.builtin.command:
|
||||||
name: rock
|
cmd: sh /tmp/starship.sh -y
|
||||||
state: absent
|
- name: Enable starship
|
||||||
remove: true
|
ansible.builtin.copy:
|
||||||
|
dest: /home/ralsina/.config/fish/conf.d/starship.fish
|
||||||
|
mode: '0644'
|
||||||
|
content: |
|
||||||
|
starship init fish | source
|
||||||
|
Loading…
Reference in New Issue
Block a user