From abea243d593ee694d854103ccf9d73c6f1c9c75f Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 18 Dec 2023 23:36:55 +0100 Subject: chsh zshell --- site.yml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) (limited to 'site.yml') diff --git a/site.yml b/site.yml index 1296890..50a2822 100644 --- a/site.yml +++ b/site.yml @@ -26,6 +26,54 @@ # ------------------------------------------------------------ +- name: set up zsh for root and horus + hosts: all + become: no + vars: + the_user: "horus" + tasks: + - name: change user shell to zsh + become: yes + user: + name: "{{ the_user }}" + shell: /bin/zsh + - name: change root shell to zsh + become: no + user: + name: "root" + shell: /bin/zsh + tags: + - chsh + +- name: copy .zshrc for root and horus + hosts: all + tasks: + - name: copy .zshrc for root + copy: + src: .zshrc + dest: /root/.zshrc + owner: root + - name: copy .zsh_aliases for root + copy: + src: .zsh_aliases + dest: /root/.zsh_aliases + owner: root + - name: copy .zshrc for horus + copy: + src: .zshrc + dest: /home/horus/.zshrc + owner: horus + - name: copy .zsh_aliases for root + copy: + src: .zsh_aliases + dest: /home/horus/.zsh_aliases + owner: horus + tags: + - chsh + + +# ------------------------------------------------------------ + - name: php hosts: all roles: @@ -63,3 +111,5 @@ tags: - mostdiscussed - applications + + #the_user: "{{ ansible_user_id }}" -- cgit v1.2.3