--- # Copyright (c) Ansible Project # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later - hosts: 127.0.0.1 connection: local tasks: - name: Setup docker ansible.builtin.include_role: name: setup_docker # noqa: syntax-check[specific] - name: Setup Docker Python deps ansible.builtin.import_role: name: setup_docker_python_deps # noqa: syntax-check[specific] # There seems to be no better way to install docker-machine. At least I couldn't find any packages for RHEL7/8. - name: Download docker-machine binary vars: docker_machine_version: "0.16.1" ansible.builtin.get_url: url: "https://github.com/docker/machine/releases/download/v{{ docker_machine_version }}/docker-machine-{{ ansible_system }}-{{ ansible_userspace_architecture }}" dest: /tmp/docker-machine - name: Install docker-machine binary ansible.builtin.command: install /tmp/docker-machine /usr/bin/docker-machine become: true