mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-08-02 13:46:22 +02:00
Add task for installation of Docker on Photon OS and update package name for Docker in Photon OS.
This commit is contained in:
parent
7afdc965a1
commit
77e542ed93
@ -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.
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user