Initial Ansible examples
Add hosts and ansible examples to README. It's not much, but it's a start.
This commit is contained in:
17
README.md
17
README.md
@@ -1,3 +1,20 @@
|
|||||||
# Workstation
|
# Workstation
|
||||||
|
|
||||||
Workstation configuration, tool lists, and eventually ansible playbooks
|
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
|
||||||
|
sudo mkdir -p /etc/ansible && sudo cp hosts /etc/ansible/hosts
|
||||||
|
```
|
||||||
|
|
||||||
|
Run an ad-hoc command
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ansible pi -i hosts --become-method=sudo --ask-become-pass --become -a "apt update"
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user