1
0

Add playbook for homepage app deploy

This commit is contained in:
2025-04-13 10:44:32 +03:00
parent c5a7db6a55
commit e5ad8fda80
6 changed files with 71 additions and 23 deletions

View File

@ -1,11 +0,0 @@
#!/usr/bin/env sh
# See https://cloud.yandex.ru/docs/container-registry/tutorials/run-docker-on-vm#run
set -eu
curl --silent --show-error -H Metadata-Flavor:Google 169.254.169.254/computeMetadata/v1/instance/service-accounts/default/token | \
cut -f1 -d',' | \
cut -f2 -d':' | \
tr -d '"' | \
docker login --username iam --password-stdin cr.yandex

View File

@ -16,9 +16,3 @@
owner: '{{ username }}'
group: '{{ username }}'
recurse: True
- name: 'Login to yandex docker registry.'
ansible.builtin.script:
cmd: 'files/yandex-docker-registry-auth.sh'
become: yes
become_user: '{{ username }}'