Currently, the task is structured in the code blocks below:
|
- name: Install latest Docker version |
|
win_dsc: |
|
resource_name: PackageManagement |
|
Name: "docker" |
|
ProviderName: DockerMsftProvider |
|
notify: |
|
- Restart server following Docker changes |
|
when: docker.version == "latest" |
|
- name: Install specific Docker version |
|
win_dsc: |
|
resource_name: PackageManagement |
|
Name: "docker" |
|
ProviderName: DockerMsftProvider |
|
RequiredVersion: "{{ docker.version }}" |
|
notify: |
|
- Restart server following Docker changes |
|
when: docker.version != "latest" |
This should be converted to ensure that docker.version exists prior to the equality check otherwise it will fail if you diverge some of the variables within the docker dict.
Currently, the task is structured in the code blocks below:
windows-docker-role/tasks/main.yml
Lines 51 to 58 in 10770bb
windows-docker-role/tasks/main.yml
Lines 60 to 68 in 10770bb
This should be converted to ensure that
docker.versionexists prior to the equality check otherwise it will fail if you diverge some of the variables within thedockerdict.