40 lines
675 B
Markdown
40 lines
675 B
Markdown
# Workstation
|
|
|
|
Workstation configuration, tool lists, and eventually ansible playbooks
|
|
|
|
## Ansible
|
|
|
|
https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html
|
|
|
|
Setup
|
|
|
|
```bash
|
|
pip install --user ansible
|
|
```
|
|
|
|
Run an ad-hoc command
|
|
|
|
```bash
|
|
ansible pi -i hosts --become-method=sudo --ask-become-pass --become -a "apt update"
|
|
```
|
|
|
|
Run a playbook
|
|
|
|
```bash
|
|
ansible-playbook -i hosts --ask-become-pass playbooks/pi.yaml
|
|
```
|
|
|
|
Run the manjaro playbook
|
|
|
|
NOTE: Restore home directory and __REBOOT__ first
|
|
|
|
```bash
|
|
ansible-playbook --ask-become-pass ansible/setup-full.yml
|
|
```
|
|
|
|
## Framework
|
|
|
|
```bash
|
|
ansible-playbook --ask-become-pass fedora/ansible/framework.yml
|
|
```
|