mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Merge pull request #211 from genebean/server-zsh
Add playbook to setup oh-my-zsh on servers
This commit is contained in:
commit
117a3c3e9a
3 changed files with 40 additions and 1 deletions
|
|
@ -1 +0,0 @@
|
||||||
carbonbean ansible_connection=local
|
|
||||||
16
ansible/ansible_hosts.yaml
Normal file
16
ansible/ansible_hosts.yaml
Normal 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
24
ansible/server-zsh.yaml
Normal 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 }}"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue