Score:0

Installing docker-ce with ansible debops.docker_server role

cn flag

I'm trying to install docker-ce using the debops.docker_server role and can't quite get forward. The default seems to install docker.io which I can't use as I need very recent versions direct from docker inc.

- hosts: docker_nodes
  become: true
  collections: [ 'debops.debops', 'debops.roles01',
                 'debops.roles02', 'debops.roles03' ]

  environment: '{{ inventory__environment | d({})
                   | combine(inventory__group_environment | d({}))
                   | combine(inventory__host_environment  | d({})) }}'

  pre_tasks:
      - name: Create docker user
        user:
            name: "{{inventory_hostname_short}}_ansible"
      - name: Remove source repository of previous docker installation
        ansible.builtin.file:
            path: /etc/apt/sources.list.d/download_docker_com_linux_debian.list
            state: absent

  roles:
      - role: docker_server
        tags: [ 'role::docker', 'skip::docker' ]
        docker_server__admins: "{{inventory_hostname_short}}_ansible"
        docker_server__upstream: true
        docker_server__upstream_edition: 'ce'
        docker_server__base_packages: []

Anyone with references to examples? Is it supported at all? Looking for a solution for buster and/or bullseye

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.