Initial Ansible examples

Add hosts and ansible examples to README. It's not much, but it's a
start.
This commit is contained in:
ducoterra
2022-01-27 18:12:58 -05:00
parent a9b5c90d45
commit 636486ae60
2 changed files with 23 additions and 1 deletions

View File

@@ -1,3 +1,20 @@
# 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"
```

5
hosts Normal file
View File

@@ -0,0 +1,5 @@
[pi]
pihole
pivault
octopi
pi-medina