Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dreknix/ansible-role-docker
Ansible role for Docker and Docker compose
https://github.com/dreknix/ansible-role-docker
ansible ansible-role docker docker-compose
Last synced: 5 days ago
JSON representation
Ansible role for Docker and Docker compose
- Host: GitHub
- URL: https://github.com/dreknix/ansible-role-docker
- Owner: dreknix
- License: mit
- Created: 2022-08-09T10:55:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-22T09:01:01.000Z (11 months ago)
- Last Synced: 2024-03-22T10:24:58.581Z (11 months ago)
- Topics: ansible, ansible-role, docker, docker-compose
- Language: Jinja
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role - Docker
Ansible role for docker and docker-compose (based on
[geerlingguy/ansible-role-docker](
https://github.com/geerlingguy/ansible-role-docker)).## Install role via `roles/requirements.yml`
### Read-Only copy
Configure the role as read-only copy:
```yml
---
# Docker/Docker-Compose
- src: https://github.com/dreknix/ansible-role-docker.git
scm: git
version: main
name: docker
...
```Install the role:
```console
$ ansible-galaxy role install --force -r roles/requirements.yml
```### Working copy
Configure the role as a working copy:
```yml
---
# Docker/Docker-Compose
- src: [email protected]:dreknix/ansible-role-docker.git
scm: git
version: main
name: docker
...
```Install the working copy:
```console
$ ansible-galaxy role install --force --keep-scm-meta -r roles/requirements.yml
```## Configure through Ansible Variables
See [`defaults/main.yml`](
https://github.com/dreknix/ansible-role-docker/blob/main/defaults/main.yml)## Using in a Playbook
```yaml
---
- name: Install Docker/Docker-Compose
hosts:
- docker
roles:
- role: docker
tags:
- docker
...
```## License
[MIT](https://github.com/dreknix/ansible-role-docker/blob/main/LICENSE)