fix2
This commit is contained in:
13
Makefile
13
Makefile
@@ -15,7 +15,7 @@ build:
|
||||
rebuild:
|
||||
docker compose build --no-cache $(c)
|
||||
docker compose down
|
||||
docker compose up -d
|
||||
# docker compose up -d
|
||||
|
||||
# Создание и запуск docker-контейнеров
|
||||
up:
|
||||
@@ -62,14 +62,17 @@ test: ## Запуск тестов с molecule
|
||||
docker compose run --rm ansible bash -c "molecule test"
|
||||
|
||||
lint: ## Проверка кода с ansible-lint
|
||||
docker compose run --rm ansible sh -c "ansible-lint roles/role"
|
||||
docker compose run --rm ansible bash -c "ansible-lint roles/role"
|
||||
|
||||
vault: ## Шифрование/дешифрование с ansible-vault
|
||||
docker compose run --rm ansible sh -c "ansible-vault edit --vault-password-file vault-password.txt vars/secrets.yml"
|
||||
vault_create: ## Шифрование/дешифрование с ansible-vault
|
||||
docker compose run --rm ansible bash -c "ansible-vault create --encrypt-vault-id default --vault-password-file vault-password.txt roles/role/vars/secrets.yml"
|
||||
|
||||
vault_edit: ## Шифрование/дешифрование с ansible-vault
|
||||
docker compose run --rm ansible bash -c "ansible-vault edit --vault-password-file vault-password.txt roles/role/vars/secrets.yml"
|
||||
|
||||
deploy: test ## Деплой на реальные машины, если тест прошел успешно
|
||||
@echo "Deploying roles to production..."
|
||||
docker compose run --rm ansible sh -c "ansible-playbook -i inventory/production deploy.yml --vault-password-file vault-password.txt"
|
||||
docker compose run --rm ansible /usr/bin/sh -c "ansible-playbook -i inventory/production deploy.yml --vault-password-file vault-password.txt"
|
||||
|
||||
####################################################################################################
|
||||
# Работа с Git
|
||||
|
||||
Reference in New Issue
Block a user