Files
DevOpsLab/docker-compose.yaml
Сергей Антропов 93333c3598 Штinit commit
2025-03-05 15:53:41 +03:00

16 lines
806 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

services:
ansible-molecule:
build:
context: .
dockerfile: Dockerfile
container_name: ansible-molecule
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./ansible_role:/workspace/role # Монтируем роль
- ./inventory:/workspace/inventory # Монтируем инвентори
- ./ansible.cfg:/etc/ansible/ansible.cfg # Монтируем конфиг Ansible
- ./vault_password_file:/workspace/vault_password_file # Монтируем файл с паролем для Vault
- ./requirements.yaml:/workspace/requirements.yml # Монтируем файл с зависимостями
working_dir: /workspace/role
command: >
sh -c "ansible-galaxy role install -r /workspace/requirements.yml && molecule test"