https://github.com/bkahlert/ansible-playbooks
Ansible playbook collection
https://github.com/bkahlert/ansible-playbooks
Last synced: 3 months ago
JSON representation
Ansible playbook collection
- Host: GitHub
- URL: https://github.com/bkahlert/ansible-playbooks
- Owner: bkahlert
- License: mit
- Created: 2023-07-03T20:19:30.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-04T01:23:35.000Z (almost 2 years ago)
- Last Synced: 2025-02-01T23:41:31.327Z (5 months ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Ansible Playbooks [](https://github.com/bkahlert/kommons/blob/master/LICENSE) [](https://www.buymeacoffee.com/bkahlert)
## About
**Ansible Playbooks** is a collection of playbooks with no specific goal in mind.
## Cheat sheet
```shell
# Install requirements
ansible-galaxy install -r requirements.yml# Gather facts about the systems in the homelab group in the current Ansible inventory
ansible homelab -m setup# Gather facts about the systems in group homelab in the specified Ansible inventory
ansible homelab -i ../hosts.yaml -m setup# Gather facts about the systems in group homelab in the specified Ansible inventory
ansible homelab -i ../hosts.yaml -m setup
```### Update & reboot
```shell
# Update and reboot machine foo
ansible-playbook playbooks/update-reboot.yaml -e "inventory=foo"# Update but don't reboot machine foo
ansible-playbook playbooks/update-reboot.yaml -e "inventory=foo reboot_default=false"
```### Change SSH port
```shell
# Update the SSH of the specified machines to the value of `ansible_port`
ansible-playbook playbooks/ssh-port.yaml -e "inventory=foo"
```## Contributing
Want to contribute?
Awesome!
The most basic way to show your support is to star the project or to raise issues.
You can also support this project by making a [PayPal donation](https://www.paypal.me/bkahlert) to ensure this journey continues indefinitely!Thanks again for your support, it's much appreciated! :pray:
## License
MIT. See [LICENSE](LICENSE) for more details.