https://github.com/larsks/so-example-75262503
https://github.com/larsks/so-example-75262503
example stackoverflow
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/larsks/so-example-75262503
- Owner: larsks
- Created: 2023-01-27T20:24:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-27T20:29:29.000Z (almost 3 years ago)
- Last Synced: 2025-09-08T18:39:12.022Z (4 months ago)
- Topics: example, stackoverflow
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repository accompanies .
I'm using a container as a target for the tests:
```
docker run --rm -d --privileged --name node0 ubuntu:22.04 sleep inf
docker exec node0 apt update
docker exec node0 apt -y install tzdata python3 sudo
```
Once the container is ready:
```
ansible-playbook playbook.yaml
```
The output looks like:
```
PLAY [all] **********************************************************************************************
TASK [Set hostname] *************************************************************************************
changed: [node0]
TASK [Set timezone] *************************************************************************************
changed: [node0]
TASK [Update all packages] ******************************************************************************
changed: [node0]
PLAY RECAP **********************************************************************************************
node0 : ok=3 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
```