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