Compare commits
11 Commits
115-change
...
main
Author | SHA1 | Date |
---|---|---|
Georg Krause | 443b73e99c | |
Georg Krause | b657818cd1 | |
Georg Krause | 9756a9575c | |
Micha Gläß-Stöcker | 64fa638244 | |
Georg Krause | 5f9bc4fb5e | |
thiuda | f2d367493b | |
thiuda | 1fd31e859e | |
thiuda | 016c68d76f | |
Georg Krause | a82a70ce53 | |
Georg Krause | 301143839a | |
gcrkrause | 7daabf03c0 |
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
skip_list:
|
||||
- fqcn-builtins
|
|
@ -0,0 +1,17 @@
|
|||
galaxy_info:
|
||||
author: Georg Krause
|
||||
description: Ansible role to deploy docker-compose including docker on Debian
|
||||
company: Progressivwerk
|
||||
|
||||
license: MIT
|
||||
|
||||
min_ansible_version: 2.1
|
||||
|
||||
galaxy_tags: []
|
||||
|
||||
platforms:
|
||||
- name: Debian
|
||||
versions:
|
||||
- 10
|
||||
|
||||
dependencies: []
|
|
@ -1,51 +1,54 @@
|
|||
- name: Ensure packages are installed
|
||||
become: yes
|
||||
become: true
|
||||
check_mode: no
|
||||
apt:
|
||||
name:
|
||||
- python3-pip
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
- curl
|
||||
- gnupg
|
||||
- gnupg-agent
|
||||
- software-properties-common
|
||||
state: present
|
||||
|
||||
- name: Trust dockers GPG key
|
||||
become: yes
|
||||
become: true
|
||||
apt_key:
|
||||
url: https://download.docker.com/linux/debian/gpg
|
||||
state: present
|
||||
|
||||
- name: Ensure docker repository is available
|
||||
become: yes
|
||||
become: true
|
||||
apt_repository:
|
||||
repo: deb https://download.docker.com/linux/debian buster stable
|
||||
repo: deb https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable
|
||||
state: present
|
||||
# notify: Update apt cache
|
||||
|
||||
#- name: Flush handlers
|
||||
# meta: flush_handlers
|
||||
# - name: Flush handlers
|
||||
# meta: flush_handlers
|
||||
|
||||
- name: Ensure packages are installed
|
||||
become: yes
|
||||
become: true
|
||||
apt:
|
||||
name:
|
||||
- docker-ce
|
||||
- docker-ce-cli
|
||||
- containerd.io
|
||||
- docker-compose
|
||||
update_cache: yes
|
||||
- docker-compose-plugin
|
||||
update_cache: true
|
||||
state: present
|
||||
|
||||
- name: Install docker python module
|
||||
become: yes
|
||||
become: true
|
||||
pip:
|
||||
executable: pip3
|
||||
name:
|
||||
- docker
|
||||
|
||||
- name: Change docker root
|
||||
become: yes
|
||||
become: true
|
||||
template:
|
||||
src: templates/daemon.json.j2
|
||||
dest: /etc/docker/daemon.json
|
||||
|
|
Loading…
Reference in New Issue