Przeglądaj źródła

Move repoquery fact definition to openshift_common.

Devan Goodwin 8 lat temu
rodzic
commit
c1728c8847

+ 0 - 3
playbooks/common/openshift-cluster/initialize_facts.yml

@@ -11,6 +11,3 @@
         hostname: "{{ openshift_hostname | default(None) }}"
   - set_fact:
       openshift_docker_hosted_registry_network: "{{ hostvars[groups.oo_first_master.0].openshift.common.portal_net }}"
-  - set_fact:
-      repoquery_cmd: "{{ 'dnf repoquery --latest-limit 1 -d 0' if ansible_pkg_mgr == 'dnf' else 'repoquery --plugins' }}"
-

+ 5 - 0
roles/openshift_common/tasks/main.yml

@@ -45,3 +45,8 @@
   command: >
     hostnamectl set-hostname {{ openshift.common.hostname }}
   when: openshift_set_hostname | default(set_hostname_default) | bool
+
+- name: Set repoquery command
+  set_fact:
+    repoquery_cmd: "{{ 'dnf repoquery --latest-limit 1 -d 0' if ansible_pkg_mgr == 'dnf' else 'repoquery --plugins' }}"
+