https://github.com/lriley2020/homelab-ansible
An Ansible project to speed up provisioning my servers
https://github.com/lriley2020/homelab-ansible
ansible apcupsd homelab linux self-hosting
Last synced: 4 months ago
JSON representation
An Ansible project to speed up provisioning my servers
- Host: GitHub
- URL: https://github.com/lriley2020/homelab-ansible
- Owner: lriley2020
- Created: 2023-02-19T16:28:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-28T16:36:12.000Z (6 months ago)
- Last Synced: 2025-02-05T07:49:25.245Z (5 months ago)
- Topics: ansible, apcupsd, homelab, linux, self-hosting
- Language: YAML
- Homepage: https://liamriley.me
- Size: 52.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# homelab-ansible
## (part of) my homelab in ansible form!This repo contains my efforts to learn IaC with Ansible
### Command snippets
Install required roles:
`ansible-galaxy role install -r requirements.yml`Ping production hosts:
`ansible all -m ping -i production-inventory`Run on staging playbook:
` ansible-playbook -i staging-inventory site.yml`Run on production playbook:
`ansible-playbook -i production-inventory site.yml`Run on production playbook, but skip all except specified host:
`ansible-playbook -i production-inventory site.yml --limit "pve"`Run on production playbook, but skip unless tagged with "testing" tag:
`ansible-playbook -i production-inventory site.yml --tags testing`