put docker role in separate repo
This commit is contained in:
parent
69cf0a1d4b
commit
bf094a02d6
4 changed files with 11 additions and 49 deletions
|
@ -1,5 +1,6 @@
|
||||||
base_data_dir: /mnt/data
|
base_data_dir: /mnt/data
|
||||||
base_service_dir: /srv
|
base_service_dir: /srv
|
||||||
|
domain_name_pim: pim.kunis.nl
|
||||||
|
|
||||||
# Additional open ports
|
# Additional open ports
|
||||||
jitsi_videobridge_port: 54562
|
jitsi_videobridge_port: 54562
|
||||||
|
@ -8,4 +9,7 @@ prometheus_port: 8081
|
||||||
traefik_api_port: 8080
|
traefik_api_port: 8080
|
||||||
internal_forgejo_port: 3000 # Needed to pull from a repository from another docker container.
|
internal_forgejo_port: 3000 # Needed to pull from a repository from another docker container.
|
||||||
|
|
||||||
domain_name_pim: pim.kunis.nl
|
docker_daemon_config:
|
||||||
|
default-address-pools:
|
||||||
|
- base: "10.204.0.0/16"
|
||||||
|
size: 24
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
- name: setup-apt
|
- name: setup-apt
|
||||||
src: https://github.com/sunscrapers/ansible-role-apt.git
|
src: https://github.com/sunscrapers/ansible-role-apt.git
|
||||||
scm: git
|
scm: git
|
||||||
|
- name: cloudinit-wait
|
||||||
|
src: https://git.pim.kunis.nl/pim/ansible-role-cloudinit-wait
|
||||||
|
scm: git
|
||||||
|
- name: docker
|
||||||
|
src: https://git.pim.kunis.nl/pim/ansible-role-docker
|
||||||
|
scm: git
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
"default-address-pools":
|
|
||||||
[
|
|
||||||
{"base":"10.204.0.0/16","size":24}
|
|
||||||
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,41 +0,0 @@
|
||||||
- name: Install Docker prerequisites
|
|
||||||
apt:
|
|
||||||
pkg:
|
|
||||||
- ca-certificates
|
|
||||||
- curl
|
|
||||||
- gnupg
|
|
||||||
- lsb-release
|
|
||||||
- python3-pip
|
|
||||||
- name: Add Docker APT key
|
|
||||||
apt_key:
|
|
||||||
url: https://download.docker.com/linux/ubuntu/gpg
|
|
||||||
keyring: /etc/apt/keyrings/docker.gpg
|
|
||||||
- name: Add Docker repository
|
|
||||||
apt_repository:
|
|
||||||
repo: "deb [signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
|
|
||||||
register: apt_repository
|
|
||||||
- name: Update APT cache
|
|
||||||
apt:
|
|
||||||
update_cache: true
|
|
||||||
when: apt_repository.changed
|
|
||||||
- name: Install Docker packages
|
|
||||||
apt:
|
|
||||||
pkg:
|
|
||||||
- docker-ce
|
|
||||||
- docker-ce-cli
|
|
||||||
- containerd.io
|
|
||||||
- docker-compose-plugin
|
|
||||||
- name: Install Docker modules for Python
|
|
||||||
pip:
|
|
||||||
name:
|
|
||||||
- docker
|
|
||||||
- docker-compose
|
|
||||||
- name: Copy daemon.json
|
|
||||||
copy:
|
|
||||||
src: "{{ role_path }}/files/daemon.json"
|
|
||||||
dest: /etc/docker/daemon.json
|
|
||||||
- name: Start Docker
|
|
||||||
systemd:
|
|
||||||
name: docker
|
|
||||||
enabled: true
|
|
||||||
state: started
|
|
Reference in a new issue