From f85a7c564671c02d959795d60957a701b7d8e510 Mon Sep 17 00:00:00 2001 From: shockrah Date: Fri, 21 Jan 2022 14:03:19 -0800 Subject: [PATCH] + Initial setup of server is complete, docker playbooks now ready to fire --- docker-host/setup/tasks/install-docker.yml | 19 ++----------------- docker-host/setup/tasks/main.yml | 9 +++++++-- docker-host/setup/vars/main.yml | 3 +++ 3 files changed, 12 insertions(+), 19 deletions(-) create mode 100644 docker-host/setup/vars/main.yml diff --git a/docker-host/setup/tasks/install-docker.yml b/docker-host/setup/tasks/install-docker.yml index c8e8f67..f6072a8 100644 --- a/docker-host/setup/tasks/install-docker.yml +++ b/docker-host/setup/tasks/install-docker.yml @@ -14,25 +14,10 @@ - software-properties-common - lsb-release - - name: Install docker GPG key - apt_key: - url: https://download.docker.com/linux/ubuntu/gpg - state: present - - - name: Add Docker Apt Repo - apt_repository: - repo: deb https://download.docker.com/linux/ubuntu impish stable - state: present - - - name: Install Docker components + - name: Install Docker apt: - name: "{{item}}" + name: docker.io update_cache: yes - loop: - - docker-ce - - docker-ce-cli - - containerd.io - diff --git a/docker-host/setup/tasks/main.yml b/docker-host/setup/tasks/main.yml index ae6ec73..ab15c3c 100644 --- a/docker-host/setup/tasks/main.yml +++ b/docker-host/setup/tasks/main.yml @@ -2,5 +2,10 @@ --- - hosts: leftcoastlab tasks: - - name: Say hi - command: echo hi + - name: Import Global Vars + include_vars: + dir: ../vars + + +- import_playbook: 'system-update.yml' +- import_playbook: 'install-docker.yml' diff --git a/docker-host/setup/vars/main.yml b/docker-host/setup/vars/main.yml new file mode 100644 index 0000000..138cc87 --- /dev/null +++ b/docker-host/setup/vars/main.yml @@ -0,0 +1,3 @@ +--- +# vars file for setup +DEBIAN_CODENAME: sid