Skip to content

Commit 88eba7c

Browse files
committed
Add requirements.yml for ansible
And some Makefile targets to use it.
1 parent f514915 commit 88eba7c

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,12 @@ fast-build-deploy: fast-build-prod push-prod fast-deploy-app
530530

531531
PLAY=ANSIBLE_CONFIG=ansible/ansible.cfg ansible-playbook -i ansible/inventory.yml $(V)
532532

533+
ansible-collection-install:
534+
ansible-galaxy collection install -r ansible/requirements.yml
535+
536+
ansible-collection-upgrade:
537+
ansible-galaxy collection install -r ansible/requirements.yml --upgrade
538+
533539
DEPLOY=$(PLAY) ansible/playbooks/deploy.yml --limit prod
534540
RESTART=$(PLAY) ansible/playbooks/restart.yml --limit prod
535541
BACKUP=$(PLAY) ansible/playbooks/backup.yml --limit prod

ansible/requirements.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
collections:
2+
- name: community.docker
3+
- name: ansible.posix

0 commit comments

Comments
 (0)