From f94cfb0db5d45adfe47100c0410a5e98b2529fcb Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Fri, 29 Mar 2024 02:06:42 +0100 Subject: [PATCH] Add files via upload --- install_docker.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 install_docker.yaml diff --git a/install_docker.yaml b/install_docker.yaml new file mode 100644 index 0000000..09016b2 --- /dev/null +++ b/install_docker.yaml @@ -0,0 +1,29 @@ +--- +- name: install docker as servie + hosts: all + become: true + + tasks: + + - name: remove other files + include_tasks: yaml_sub/myrepo_clean.yaml + + - name: update file myrepo.repo + import_tasks: yaml_sub/myrepo_data.yaml + + - name: install docker rpm + dnf: + name: "docker-ce,docker-ce-cli,docker-ce-rootless-extras,docker-buildx-plugin,docker-compose-plugin,python3,python3-pip,python3-requests" + state: latest + update_cache: true + skip_broken: true + nobest: false + allowerasing: true + enablerepo: "docker-ce-stable" + + - name: make sure docker service unit is started + systemd_service: + state: started + name: docker + enabled: true +