Merge pull request #211 from genebean/server-zsh

Add playbook to setup oh-my-zsh on servers
This commit is contained in:
Gene Liverman 2022-06-25 16:50:37 -04:00 committed by GitHub
commit 117a3c3e9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 1 deletions

View file

@ -1 +0,0 @@
carbonbean ansible_connection=local

View file

@ -0,0 +1,16 @@
---
all:
hosts:
carbonbean:
ansible_connection: local
children:
servers:
vars:
ansible_connection: ssh
hosts:
cloud2.technicalissues.us:
ansible_user: gene
mail.alt.technicalissues.us:
ansible_user: gliverma
mini-watcher.local:
ansible_user: gene

24
ansible/server-zsh.yaml Normal file
View file

@ -0,0 +1,24 @@
---
- name: Install and configure zsh
hosts: servers
vars:
ansible_python_interpreter: '/usr/bin/python3'
tasks:
- name: Install zsh using default package manager
become: true
ansible.builtin.package:
state: present
name:
- git
- zsh
- name: Setup Oh My ZSH
include_role:
name: gantsign.oh-my-zsh
vars:
oh_my_zsh_theme: steeef
oh_my_zsh_plugins:
- git
users:
- username: "{{ ansible_user }}"