b2ae863f50
Latest ansible-lint is finding this. It seems reasonable enough to ensure the task is named; it's always nice to have context about what is happening as you read the file. Change-Id: Ia7e490aaba99da9694a6f3fdb1bca9838221b30a
40 lines
1011 B
YAML
40 lines
1011 B
YAML
---
|
|
- name: Not Implemented
|
|
fail:
|
|
msg: This set of tasks has not been implemented.
|
|
when: ansible_pkg_mgr == 'zypper'
|
|
|
|
- name: Upstream block
|
|
become: true
|
|
block:
|
|
- name: Set up docker mirrors
|
|
include_role:
|
|
name: use-docker-mirror
|
|
|
|
- name: Add all repositories
|
|
include_role:
|
|
name: ensure-package-repositories
|
|
vars:
|
|
repositories_keys: "{{ _docker_keys }}"
|
|
repositories_list: "{{ _docker_repos }}"
|
|
|
|
- name: Install pre-reqs
|
|
package:
|
|
name: "{{ _docker_upstream_distro_required_packages }}"
|
|
state: present
|
|
|
|
- name: Remove packages
|
|
package:
|
|
name: "{{ docker_upstream_distro_remove_packages }}"
|
|
state: absent
|
|
when: docker_upstream_distro_remove_packages
|
|
|
|
- name: Install upstream docker using package
|
|
package:
|
|
name: "{{ docker_upstream_distro_packages }}"
|
|
state: present
|
|
notify: Restart docker
|
|
|
|
- name: Setup docker
|
|
include_tasks: docker-setup.yaml
|