Skip to content

Commit

Permalink
Install docker
Browse files Browse the repository at this point in the history
  • Loading branch information
marcwrobel committed Feb 2, 2025
1 parent 3a9ac98 commit 1073148
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .ansible/roles/apt/tasks/extra_repositories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: "Install repository key for {{ item.name }}"
ansible.builtin.get_url:
url: "{{ item.key_url }}"
dest: "/usr/share/keyrings/{{ item.name }}.{{ item.key_format }}"
dest: "/etc/apt/keyrings/{{ item.name }}.{{ item.key_format }}"
mode: "0644"
force: true # replace if the content changes
when: "item.state == 'present'"
Expand Down
32 changes: 29 additions & 3 deletions setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@
- { role: "sysctl", tags: ["sysctl"] }
- { role: "root", tags: ["root"] }
- { role: "sudo", tags: ["sudo"] }
- { role: "apt", tags: ["apt"] }

- role: "apt"
tags: ["apt"]
vars:
apt__extra_repositories:
- name: "docker"
key_url: "https://download.docker.com/linux/debian/gpg"
key_format: "asc"
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
state: "present"

- { role: "git", tags: ["git"] }
- { role: "etckeeper", tags: ["etckeeper"] }
- { role: "vim", tags: ["vim"] }
Expand All @@ -18,13 +28,20 @@
vars:
packages__blacklist:
- "telnet" # use netcat instead
- "containerd" # see https://docs.docker.com/engine/install/debian/
- "docker.io" # see https://docs.docker.com/engine/install/debian/
- "docker-compose" # see https://docs.docker.com/engine/install/debian/
- "docker-doc" # see https://docs.docker.com/engine/install/debian/
- "podman-docker" # see https://docs.docker.com/engine/install/debian/
- "runc" # see https://docs.docker.com/engine/install/debian/
packages__list: # See https://pkgs.org/
# Clients
- "curl" # command line tool for transferring data with URL syntax
- "httpie" # cURL-like tool for humans
- "rsync" # fast, versatile, remote (and local) file-copying tool
# Compression
- "bzip2" # high-quality block-sorting file compressor
- "pigz" # parallel implementation of gzip
- "unzip" # de-archiver for .zip files
- "zip" # archiver for .zip files
- "zstd" # fast lossless compression algorithm -- CLI tool
Expand Down Expand Up @@ -58,17 +75,26 @@
- "pass" # lightweight directory-based password manager
- "uuid" # Universally Unique Identifier Command-Line Tool
- "renrot" # rename and rotate files according to EXIF tags
# Docker external repository, see https://docs.docker.com/engine/install/debian/
- "cgroupfs-mount"
- "containerd.io"
- "docker-buildx-plugin" # from docker
- "docker-ce"
- "docker-ce-cli"
- "docker-ce-rootless-extras"
- "docker-compose-plugin" # from docker
- "slirp4netns"

- role: "gnome"
tags: ["gnome"]
vars:
gnome__dconf:
- { key: "/org/gnome/desktop/wm/keybindings/switch-windows", value: "['<Alt>Tab']" }
- { key: "/org/gnome/desktop/wm/keybindings/switch-windows-backward", value: "['<Shift><Alt>Tab', '<Alt>Above_Tab']" }
- { key: "/org/gnome/desktop/wm/keybindings/switch-applications", value: "[]" }
- { key: "/org/gnome/desktop/wm/keybindings/switch-applications-backward", value: "[]" }
tags: ["gnome"]

- role: "dotfiles"
tags: ["dotfiles"]
vars:
dotfiles__dir: "{{ playbook_dir }}/dotfiles"
tags: ["dotfiles"]

0 comments on commit 1073148

Please sign in to comment.