This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
- name: Make sure Container directory exists
|
||||
ansible.builtin.file:
|
||||
path: "{{ container_dir }}"
|
||||
state: directory
|
||||
|
||||
- ansible.builtin.git:
|
||||
repo: https://git.pukeko.xyz/shmick/docker.git
|
||||
dest: "{{ container_dir }}/{{ item }}"
|
||||
@@ -6,6 +11,7 @@
|
||||
- ansible.builtin.template:
|
||||
src: "{{ container_dir }}/{{ item }}/docker-compose.yml.j2"
|
||||
dest: "{{ container_dir }}/{{ item }}/docker-compose.yml"
|
||||
delegate_to: localhost
|
||||
|
||||
- community.docker.docker_compose:
|
||||
project_src: "{{ container_dir }}/{{ item }}"
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
# ^ ex: Ubuntu -> ubuntu
|
||||
url: "https://download.docker.com/linux/ubuntu/gpg"
|
||||
state: present
|
||||
ignore_errors: yes
|
||||
|
||||
|
||||
- name: Add Docker's APT repo
|
||||
@@ -25,6 +26,7 @@
|
||||
repo: "deb [arch={{ docker_arch }}] https://download.docker.com/linux/ubuntu {{ ansible_distribution_release }} stable"
|
||||
state: present
|
||||
update_cache: yes
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Install docker and dependencies
|
||||
ansible.builtin.apt:
|
||||
|
||||
@@ -10,11 +10,6 @@
|
||||
- name: Install Docker CE ## From: https://gist.github.com/rbq/886587980894e98b23d0eee2a1d84933, https://docs.docker.com/engine/install/
|
||||
include_tasks: docker.yaml
|
||||
|
||||
- name: Make sure Container directory exists
|
||||
ansible.builtin.file:
|
||||
path: "{{ container_dir }}"
|
||||
state: directory
|
||||
|
||||
- name: Set up containers
|
||||
include_tasks: containers.yaml
|
||||
with_items:
|
||||
|
||||
Reference in New Issue
Block a user