mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-05-26 09:56:00 +00:00
Refactor ansible hosts.yml: Update hosts to include all servers
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
---
|
||||
- name: Playbook
|
||||
hosts: all
|
||||
become: true
|
||||
|
||||
vars:
|
||||
omz_install_zsh: true
|
||||
users:
|
||||
- name: "user"
|
||||
group: "user"
|
||||
settings: |
|
||||
export PATH="/usr/local/sbin:$path"
|
||||
alias l="ls -lah"
|
||||
tasks:
|
||||
- name: Run ansible-role-oh-my-zsh.
|
||||
include_role:
|
||||
name: "ansible-role-oh-my-zsh"
|
||||
vars:
|
||||
omz_user: "{{ item }}"
|
||||
# Only create `.zshrc` for user 'lorem'; item.settings will be
|
||||
# appended to `.zshrc` for the user 'ipsum'.
|
||||
omz_zshrc_create: "{{ (item.name == 'user') | ternary(true, false) }}"
|
||||
omz_plugins:
|
||||
- "kubectl"
|
||||
- "git"
|
||||
with_items: "{{ users }}"
|
||||
Reference in New Issue
Block a user