ansible-collection-base/roles/zsh/tasks/user.yml
2021-09-04 10:14:38 +02:00

23 lines
498 B
YAML

---
- name: Template zshrc
template:
src: .zshrc.j2
dest: "{{ item.home_path }}/.zshrc"
owner: "{{ item.name }}"
group: "{{ item.name }}"
become: yes
- name: Set default shell
user:
name: "{{ item.name }}"
shell: "/bin/zsh"
become: yes
- name: Ensure ~/.profile exists
file:
path: "{{ item.home_path }}/.profile"
state: touch
access_time: preserve
modification_time: preserve
owner: "{{ item.name }}"
group: "{{ item.name }}"
become: yes