diff options
author | Russell Teague <rteague@redhat.com> | 2016-11-16 16:30:28 -0500 |
---|---|---|
committer | Russell Teague <rteague@redhat.com> | 2016-11-17 15:10:37 -0500 |
commit | 7e0c346c8406eb6142e8d38fdec4e13236f3cdc6 (patch) | |
tree | 2bc96a95a6b60cdcc7278966886b14079c71f7eb /roles/openshift_ca | |
parent | ac1b73841a109f6e9f6947434a9e1aca382e61c6 (diff) | |
download | openshift-7e0c346c8406eb6142e8d38fdec4e13236f3cdc6.tar.gz openshift-7e0c346c8406eb6142e8d38fdec4e13236f3cdc6.tar.bz2 openshift-7e0c346c8406eb6142e8d38fdec4e13236f3cdc6.tar.xz openshift-7e0c346c8406eb6142e8d38fdec4e13236f3cdc6.zip |
Refactor to use Ansible package module
The Ansible package module will call the correct package manager for the
underlying OS.
Diffstat (limited to 'roles/openshift_ca')
-rw-r--r-- | roles/openshift_ca/tasks/main.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/openshift_ca/tasks/main.yml b/roles/openshift_ca/tasks/main.yml index b6d403067..e2a12e5ff 100644 --- a/roles/openshift_ca/tasks/main.yml +++ b/roles/openshift_ca/tasks/main.yml @@ -8,7 +8,9 @@ when: openshift_master_ca_certificate is defined and ('certfile' not in openshift_master_ca_certificate or 'keyfile' not in openshift_master_ca_certificate) - name: Install the base package for admin tooling - action: "{{ ansible_pkg_mgr }} name={{ openshift.common.service_type }}{{ openshift_pkg_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) }} state=present" + package: + name: "{{ openshift.common.service_type }}{{ openshift_pkg_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) }}" + state: present when: not openshift.common.is_containerized | bool register: install_result delegate_to: "{{ openshift_ca_host }}" |