added zsh install and atuin
This commit is contained in:
parent
5201c967d5
commit
200c95a753
@ -11,6 +11,9 @@
|
|||||||
state: latest
|
state: latest
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
|
- name: setup shell
|
||||||
|
import_tasks: shell.yml
|
||||||
|
|
||||||
- name: Add Docker GPG apt Key
|
- name: Add Docker GPG apt Key
|
||||||
apt_key:
|
apt_key:
|
||||||
url: https://download.docker.com/linux/ubuntu/gpg
|
url: https://download.docker.com/linux/ubuntu/gpg
|
||||||
|
27
roles/docker/tasks/shell.yml
Normal file
27
roles/docker/tasks/shell.yml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
- name: install zsh
|
||||||
|
apt:
|
||||||
|
name: zsh
|
||||||
|
state: latest
|
||||||
|
update_cache: true
|
||||||
|
|
||||||
|
- name: set zsh as default shell
|
||||||
|
ansible.builtin.shell: chsh -s $(which zsh) {{ ansible_user }}
|
||||||
|
|
||||||
|
- name: Download Atuin setup script
|
||||||
|
get_url:
|
||||||
|
url: https://setup.atuin.sh
|
||||||
|
dest: /tmp/setup_atuin.sh
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
|
- name: Run the Atuin setup script
|
||||||
|
command: /tmp/setup_atuin.sh
|
||||||
|
register: atuin_install
|
||||||
|
become: true
|
||||||
|
become_user: "{{ ansible_user }}"
|
||||||
|
|
||||||
|
- name: login to atuin
|
||||||
|
command: /home/{{ ansible_user }}/.atuin/bin/atuin login -u philskents -p "{{ atuin_pass }}" -k "{{ atuin_key }}"
|
||||||
|
when: atuin_install.rc == 0
|
||||||
|
become: true
|
||||||
|
become_user: "{{ ansible_user }}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user