ansible/roles/basic_common_settings/tasks/zsh_skel.yml

45 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2022-12-14 17:43:16 +01:00
---
- name: Create ZSH config dir (/etc/zsh)
file:
path: /etc/zsh/
owner: root
group: root
state: directory
when: ansible_os_family == 'Debian'
- name: Create ZSH config dir (/etc/zsh)
file:
path: /etc/zsh/
owner: root
group: wheel
state: directory
when: ansible_os_family == 'OpenBSD'
- name: Download GRML ZSH config
get_url:
url: https://git.grml.org/?p=grml-etc-core.git;a=blob_plain;f=etc/zsh/zshrc;h=22ed16228d1e26b47322bd34b041f544aa5d458d;hb=refs/heads/master
dest: /etc/zsh/zshrc
mode: '0644'
retries: 10
delay: 3
when: ansible_os_family == 'Debian' or ansible_os_family == 'OpenBSD'
- name: Copy ZSH config to /etc/skel/.zshrc
get_url:
url: https://git.grml.org/?p=grml-etc-core.git;a=blob_plain;f=etc/zsh/zshrc;h=22ed16228d1e26b47322bd34b041f544aa5d458d;hb=refs/heads/master
dest: /etc/skel/.zshrc
owner: root
group: root
mode: '0644'
when: ansible_os_family == 'Debian'
- name: Copy ZSH config to /etc/skel/.zshrc
get_url:
url: https://git.grml.org/?p=grml-etc-core.git;a=blob_plain;f=etc/zsh/zshrc;h=22ed16228d1e26b47322bd34b041f544aa5d458d;hb=refs/heads/master
dest: /etc/skel/.zshrc
owner: root
group: wheel
mode: '0644'
when: ansible_os_family == 'OpenBSD'