diff options
| author | admin | 2023-12-18 23:36:55 +0100 |
|---|---|---|
| committer | admin | 2023-12-18 23:36:55 +0100 |
| commit | abea243d593ee694d854103ccf9d73c6f1c9c75f (patch) | |
| tree | 5d2708cd24f8c2f68a09eee1e4561d8c25d15565 /site.yml | |
| parent | 2adc886e5c0c72b8c6560050c4edd30ea9fdbb56 (diff) | |
| download | ansible-abea243d593ee694d854103ccf9d73c6f1c9c75f.tar.gz | |
chsh zshell
Diffstat (limited to 'site.yml')
| -rw-r--r-- | site.yml | 50 |
1 files changed, 50 insertions, 0 deletions
@@ -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 }}" |
