Inital commit

This commit is contained in:
Sven Velt 2024-07-09 22:16:55 +02:00
commit 6a0ce917b3
10 changed files with 83 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
.*.swp
*~

34
README.md Normal file
View file

@ -0,0 +1,34 @@
zsh-install
===========
Install zsh, mainly used as dependency
Role Variables
--------------
None
Example Playbook
----------------
---
- hosts: all
roles:
- role: zsh-install
License
-------
AGPL-3.0-or-later
Author Information
------------------
Sven Velt - <sven-ansiblerole@velt.biz>
https://git.velt.biz/velt.biz/

11
tasks/main.yml Normal file
View file

@ -0,0 +1,11 @@
---
- name: Include OS-dependent variables
include_vars: "{{ ansible_os_family|lower }}.yml"
- name: Install zsh
package:
name: "{{ zsh_packages }}"
state: latest

4
vars/alpine.yml Normal file
View file

@ -0,0 +1,4 @@
---
zsh_packages:
- zsh

6
vars/archlinux.yml Normal file
View file

@ -0,0 +1,6 @@
---
zsh_packages:
- zsh
- zsh-completions
- zsh-syntax-highlighting

4
vars/debian.yml Normal file
View file

@ -0,0 +1,4 @@
---
zsh_packages:
- zsh

5
vars/redhat.yml Normal file
View file

@ -0,0 +1,5 @@
---
zsh_packages:
- zsh
- zsh-syntax-highlighting

4
vars/suse.yml Normal file
View file

@ -0,0 +1,4 @@
---
zsh_packages:
- zsh

6
vars/void.yml Normal file
View file

@ -0,0 +1,6 @@
---
zsh_packages:
- zsh
- zsh-completions
- zsh-syntax-highlighting

6
zsh-install.yml Normal file
View file

@ -0,0 +1,6 @@
---
- hosts: all
roles:
- zsh-install