Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker_server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Filament
Ansible Roles
docker_server
Commits
32025784
Commit
32025784
authored
1 year ago
by
Théo - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
change: install Docker from Ubuntu repository
parent
c894d774
No related branches found
Branches containing commit
Tags
v1.7.0
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tasks/main.yml
+0
-43
0 additions, 43 deletions
tasks/main.yml
templates/inverseproxy.yaml.j2
+4
-4
4 additions, 4 deletions
templates/inverseproxy.yaml.j2
vars/Debian.yml
+2
-7
2 additions, 7 deletions
vars/Debian.yml
vars/main.yml
+0
-3
0 additions, 3 deletions
vars/main.yml
with
6 additions
and
57 deletions
tasks/main.yml
+
0
−
43
View file @
32025784
...
...
@@ -2,7 +2,6 @@
-
name
:
Include OS-specific variables.
include_vars
:
"
{{
ansible_os_family
}}.yml"
## Install Docker packages
-
name
:
Install apt-transport-https package
apt
:
name
:
apt-transport-https
...
...
@@ -10,41 +9,6 @@
state
:
latest
when
:
ansible_os_family == "Debian"
# TODO-PI update for getting proper packages for Raspbian - add packages libffi-dev libssl-dev
-
name
:
Add Docker GPG key to APT
get_url
:
url
:
"
https://download.docker.com/linux/{{
ansible_distribution|lower
}}/gpg"
dest
:
/etc/apt/trusted.gpg.d/docker.asc
mode
:
'
0644'
when
:
ansible_os_family == "Debian"
-
name
:
Add Docker repo to APT repositories for x86_64 architecture
apt_repository
:
repo
:
deb [arch=amd64] https://download.docker.com/linux/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release|lower }} stable
update_cache
:
true
when
:
ansible_os_family == "Debian" and ansible_architecture == "x86_64"
-
name
:
Add Docker repo to APT repositories for ARM 64 architecture
apt_repository
:
repo
:
deb [arch=arm64] https://download.docker.com/linux/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release|lower }} stable
update_cache
:
true
when
:
ansible_os_family == "Debian" and ansible_architecture == "aarch64"
-
name
:
Add Docker repo to YUM repositories
yum_repository
:
file
:
docker-ce
name
:
docker-ce-stable
description
:
Docker CE Stable - $basearch
baseurl
:
https://download.docker.com/linux/centos/7/$basearch/stable
gpgkey
:
https://download.docker.com/linux/centos/gpue
gpgcheck
:
true
when
:
ansible_os_family == "RedHat"
-
name
:
Remove old Docker packages if present
package
:
name
:
"
{{
packages_to_remove
}}"
state
:
absent
-
name
:
Install OS packages
package
:
name
:
"
{{
packages_to_install
}}"
...
...
@@ -59,13 +23,6 @@
state
:
latest
when
:
ansible_check_mode
-
name
:
Update pip
pip
:
name
:
[
'
{{
item
}}'
]
executable
:
pip3
state
:
latest
with_items
:
"
{{
pip_packages
}}"
-
name
:
Create /etc/docker repo
file
:
name
:
/etc/docker
...
...
This diff is collapsed.
Click to expand it.
templates/inverseproxy.yaml.j2
+
4
−
4
View file @
32025784
...
...
@@ -7,7 +7,7 @@ services:
TZ: "{{ timezone }}"
networks:
net46:
{% if odoo_instances.values() | list | selectattr('extra_app', 'defined') %}
{% if
odoo_instances is defined and
odoo_instances.values() | list | selectattr('extra_app', 'defined') %}
app:
{% endif %}
shared:
...
...
@@ -30,7 +30,7 @@ services:
{% endif %}
{% endif %}
{% endif %}
{% if
metabase
%}
{% if
odoo_instances is defined and odoo_instances.values() | list | selectattr('metabase', 'defined')
%}
bi:
{% endif %}
smtp:
...
...
@@ -77,7 +77,7 @@ networks:
config:
- subnet: fd01::/64
gateway: fd01::1
{% if odoo_instances.values() | list | selectattr('extra_app', 'defined') %}
{% if
odoo_instances is defined and
odoo_instances.values() | list | selectattr('extra_app', 'defined') %}
app:
internal: true
driver_opts:
...
...
@@ -89,7 +89,7 @@ networks:
{% endif %}
driver_opts:
encrypted: 1
{% if
metabase
%}
{% if
odoo_instances is defined and odoo_instances.values() | list | selectattr('metabase', 'defined')
%}
bi:
internal: true
driver_opts:
...
...
This diff is collapsed.
Click to expand it.
vars/Debian.yml
+
2
−
7
View file @
32025784
---
packages_to_remove
:
-
containerd
-
docker
-
docker-engine
-
docker.io
-
runc
packages_to_install
:
-
build-essential
-
ca-certificates
-
curl
-
docker-ce
-
docker.io
-
docker-compose
-
git
-
python3-dev
-
python3-docker
...
...
This diff is collapsed.
Click to expand it.
vars/main.yml
+
0
−
3
View file @
32025784
---
pip_packages
:
-
pip
-
docker_compose
timezone
:
"
Europe/Paris"
traefik_version
:
"
v2.10"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment