An open API service indexing awesome lists of open source software.

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

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`