Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/venturaproject/ansible-project
This project uses Docker and Ansible to manage and deploy infrastructure. Below are the commands to build, run, and interact with the Docker containers and execute Ansible playbooks.
https://github.com/venturaproject/ansible-project
ansible docker docker-compose
Last synced: about 2 months ago
JSON representation
This project uses Docker and Ansible to manage and deploy infrastructure. Below are the commands to build, run, and interact with the Docker containers and execute Ansible playbooks.
- Host: GitHub
- URL: https://github.com/venturaproject/ansible-project
- Owner: venturaproject
- Created: 2024-07-16T12:03:37.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-16T13:09:49.000Z (6 months ago)
- Last Synced: 2024-07-17T15:18:22.286Z (6 months ago)
- Topics: ansible, docker, docker-compose
- Language: Dockerfile
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible Project with Docker
This project uses Docker and Ansible to manage and deploy infrastructure. Below are the commands to build, run, and interact with the Docker containers and execute Ansible playbooks.
## Getting Started
### Setup Environment Variables
First, rename the `.env.dist` file to `.env` and add the following environment variables:
```
SFTP_HOST=ADD_SERVER_SFTP_HOST
SFTP_USER=ADD_SFTP_USER
SFTP_PASSWORD=ADD_SFTP_PASSWORD
LOCAL_DIR_NAME=files
REMOTE_DIR_NAME=files
```### Build and Run the Docker Containers
To build the Docker containers without using the cache and run them in detached mode, use the following command:
```
make run
```### Access ansible container
To access the shell (bash) inside the running application container, use the following command:
```
make enter-app-container
```### Execute Ansible Playbook
To execute the Ansible playbook inside the running container, use the following command:
```
make execute
```