Add task for installation of Docker on Photon OS and update package name for Docker in Photon OS.

This commit is contained in:
josephrajewski 2021-07-27 14:42:01 -04:00
parent 7afdc965a1
commit 77e542ed93
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,7 @@
# Edition can be one of: 'ce' (Community Edition) or 'ee' (Enterprise Edition).
docker_edition: 'ce'
docker_package: "docker-{{ docker_edition }}"
docker_package_photon: "docker"
docker_package_state: present
# Service options.

View File

@ -11,6 +11,13 @@
state: "{{ docker_package_state }}"
notify: restart docker
ignore_errors: "{{ ansible_check_mode }}"
when: not ansible_facts['os_family'] == "VMware Photon OS"
- name: Install Docker on Photon OS.
command: "tdnf install {{ item }}"
with_items: "{{ docker_package_photon }}"
tags: installation
when: ansible_facts['os_family'] == "VMware Photon OS"
- name: Ensure /etc/docker/ directory exists.
file: