2022-05-02 10:39:13 +02:00
|
|
|
# Add Ansible Role to your project
|
2022-05-02 10:40:10 +02:00
|
|
|
``` bash
|
2022-05-02 10:39:13 +02:00
|
|
|
cd <ansible_remote_folder>
|
|
|
|
git submodule add <repository_url> roles/oh-my-zsh
|
2022-05-02 10:40:10 +02:00
|
|
|
```
|
2022-05-02 10:44:13 +02:00
|
|
|
|
|
|
|
# How to use it in playbook
|
|
|
|
``` yaml
|
|
|
|
- hosts: localhost
|
|
|
|
become: true
|
|
|
|
roles:
|
|
|
|
- role: oh-my-zsh
|
|
|
|
template: powerlevel10k
|
|
|
|
plugins:
|
|
|
|
- zsh-syntax-highlighting
|
|
|
|
- zsh-autosuggestions
|
2022-05-02 10:58:24 +02:00
|
|
|
oh-my-zsh-users:
|
2022-05-02 10:44:13 +02:00
|
|
|
- me
|
|
|
|
- root
|
|
|
|
```
|