|
|
@ -22,25 +22,36 @@ |
|
|
|
|
|
|
|
- name: ensure docker requirements packages are installed |
|
|
|
action: "{{ docker_package_info.pkg_mgr }}" |
|
|
|
args: docker_package_info.args |
|
|
|
args: |
|
|
|
name: "{{item}}" |
|
|
|
state: latest |
|
|
|
update_cache: yes |
|
|
|
with_items: docker_package_info.pre_pkgs |
|
|
|
when: docker_package_info.pre_pkgs|length > 0 |
|
|
|
|
|
|
|
- name: ensure docker repository public key is installed |
|
|
|
action: "{{ docker_repo_key_info.pkg_key }}" |
|
|
|
args: docker_repo_key_info.args |
|
|
|
args: |
|
|
|
id: "{{item}}" |
|
|
|
keyserver: "{{docker_repo_key_info.keyserver}}" |
|
|
|
state: present |
|
|
|
with_items: docker_repo_key_info.repo_keys |
|
|
|
when: docker_repo_key_info.repo_keys|length > 0 |
|
|
|
|
|
|
|
- name: ensure docker repository is enabled |
|
|
|
action: "{{ docker_repo_info.pkg_repo }}" |
|
|
|
args: docker_repo_info.args |
|
|
|
args: |
|
|
|
repo: "{{item}}" |
|
|
|
update_cache: yes |
|
|
|
state: present |
|
|
|
with_items: docker_repo_info.repos |
|
|
|
when: docker_repo_info.repos|length > 0 |
|
|
|
|
|
|
|
- name: ensure docker packages are installed |
|
|
|
action: "{{ docker_package_info.pkg_mgr }}" |
|
|
|
args: docker_package_info.args |
|
|
|
args: |
|
|
|
pkg: "{{item}}" |
|
|
|
update_cache: yes |
|
|
|
state: latest |
|
|
|
with_items: docker_package_info.pkgs |
|
|
|
when: docker_package_info.pkgs|length > 0 |
|
|
|
|
|
|
|