Bug fixes after testing

This commit is contained in:
David Petric
2023-03-28 10:24:45 +02:00
parent 5ff2c19628
commit 314c2a1527
7 changed files with 65 additions and 21 deletions

View File

@ -13,13 +13,17 @@
state: directory
mode: '0744'
- name: Get keyring
- name: Add GPG keyring
become: true
shell: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
- name: Add repository
apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
state: present
- name: Add Docker repo
become: true
shell: echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-pluginsudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-pluginlinux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt_repository:
repo: deb https://download.docker.com/linux/ubuntu focal stable
state: present
- name: Update repository and install docker
apt:
@ -28,4 +32,10 @@
- docker-ce-cli
- containerd.io
- docker-compose-plugin
update_cache: yes
update_cache: yes
- name: Install Docker compose
get_url:
url: https://github.com/docker/compose/releases/download/v2.17.2/docker-compose-linux-x86_64
dest: /usr/local/bin/docker-compose
mode: 'u+x,g+x'