add docker_use_dist_repo variable + default
to decide for install source repo and add to README
This commit is contained in:
15
README.md
15
README.md
@@ -1,4 +1,4 @@
|
|||||||
# Ansible Collection - `dede.common`
|
# Ansible Collection - dede.common
|
||||||
|
|
||||||
this ansible collection primarily aims to provide common roles that i've been building
|
this ansible collection primarily aims to provide common roles that i've been building
|
||||||
for either my home or the wululu web network and systems.
|
for either my home or the wululu web network and systems.
|
||||||
@@ -6,4 +6,17 @@ for either my home or the wululu web network and systems.
|
|||||||
by publishing it i hope it can be useful for anyone looking for inspiration
|
by publishing it i hope it can be useful for anyone looking for inspiration
|
||||||
or even roles ready-to-go.
|
or even roles ready-to-go.
|
||||||
|
|
||||||
|
please mind that everything in this collection mainly focuses debian as a server operating system.
|
||||||
|
thus i will not add features specific to other operating systems unless i need to.
|
||||||
|
|
||||||
if you have any questions feel free to get in touch with me.
|
if you have any questions feel free to get in touch with me.
|
||||||
|
|
||||||
|
## roles
|
||||||
|
|
||||||
|
* **test**
|
||||||
|
a simple role to test ansible or just this collection
|
||||||
|
* **docker**
|
||||||
|
a docker install role that can install docker-ce engine in two ways:
|
||||||
|
1. from the official docker repository (recommended by docker)
|
||||||
|
2. from your distribution
|
||||||
|
you can switch to the distribution method by setting `docker_use_dist_repo` to `true` (defaults to `false`).
|
||||||
|
|||||||
2
roles/docker/defaults/main.yml
Normal file
2
roles/docker/defaults/main.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
docker_use_dist_repo: false
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: include proper install tasks
|
- name: include proper install tasks
|
||||||
ansible.builtin.import_tasks:
|
ansible.builtin.import_tasks:
|
||||||
file: "{{ docker_type | default('docker') }}.yml"
|
file: "{{ 'dist' if docker_use_dist_repo else 'docker' }}.yml"
|
||||||
|
|||||||
Reference in New Issue
Block a user