code-snippets/infra/ansible/deploy-playbook.yml

11 lines
248 B
YAML
Raw Normal View History

2024-09-05 13:54:08 +10:00
---
- name: Configure App Server
hosts: app
remote_user: root
become: yes # sudo
roles:
2024-09-05 14:07:14 +10:00
- app
vars:
registry_username: "{{ lookup('env', 'REGISTRY_USERNAME') }}"
registry_password: "{{ lookup('env', 'REGISTRY_PASSWORD') }}"