Compare commits
2 Commits
a2546ce72e
...
d0adf1a301
| Author | SHA1 | Date | |
|---|---|---|---|
| d0adf1a301 | |||
| 8c449aa986 |
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`).
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ namespace: dede
|
|||||||
name: common
|
name: common
|
||||||
|
|
||||||
# The version of the collection. Must be compatible with semantic versioning
|
# The version of the collection. Must be compatible with semantic versioning
|
||||||
version: 1.0.0
|
version: 0.1.0
|
||||||
|
|
||||||
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
||||||
readme: README.md
|
readme: README.md
|
||||||
|
|||||||
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