infra/ansible/Makefile
Graham McIntire 118aa70f51
cleanup: remove broken makefile targets, fix general.yml references
- Remove all docker/build/push targets (no Dockerfile exists)
- Remove broken qc-web target (group doesn't exist)
- Remove clean, dirs, base-*, local, latest targets (docker-only)
- Fix bootstrap-network, run-all to use playbook.yml not general.yml
- Fix install-collections (deleted files referenced)
- Update findings.md
2026-06-04 14:37:55 -05:00

32 lines
1,013 B
Makefile

ANSIBLE_CMD = ansible-playbook
facts:
ansible -m setup all
bootstrap-network:
$(ANSIBLE_CMD) -l $(HOSTNAME) -e ansible_host=$(ANSIBLE_HOST) -t network --skip-tags network_restart playbook.yml
bootstrap-reboot:
ssh -t -i ~/.ssh/ansible ansible@$(ANSIBLE_HOST) "sudo reboot" || true
bootstrap-init:
$(ANSIBLE_CMD) -l $(HOSTNAME) -e ansible_user=graham -e ansible_host=$(ANSIBLE_HOST) -k -K bootstrap.yml
bootstrap-init-root:
ANSIBLE_CONFIG=ansible-bootstrap.cfg $(ANSIBLE_CMD) -l $(HOSTNAME) -e ansible_user=root -e ansible_host=$(ANSIBLE_HOST) -e ansible_become=no bootstrap.yml
bootstrap: bootstrap-init bootstrap-network bootstrap-reboot
bootstrap-root: bootstrap-init-root bootstrap-network bootstrap-reboot
run-all:
$(ANSIBLE_CMD) -l $(HOSTNAME) -e ansible_host=$(ANSIBLE_HOST) playbook.yml
install-ssh-key:
ssh-copy-id $(ANSIBLE_HOST)
reboot:
ssh -t -i ~/.ssh/ansible ansible@$(ANSIBLE_HOST) "sudo reboot"
install-collections:
ansible-galaxy collection install -r requirements.yml --force