Przeglądaj źródła

move etcdctl.yml from etcd to etcd_common role

Jan Chaloupka 8 lat temu
rodzic
commit
1dcf43f235

+ 3 - 1
playbooks/common/openshift-cluster/upgrades/etcd/main.yml

@@ -14,7 +14,9 @@
 - name: Drop etcdctl profiles
   hosts: oo_etcd_hosts_to_upgrade
   tasks:
-  - include: roles/etcd/tasks/etcdctl.yml
+  - include_role:
+      name: etcd_common
+      tasks_from: etcdctl.yml
 
 - name: Perform etcd upgrade
   include: ./upgrade.yml

+ 3 - 1
roles/etcd/tasks/main.yml

@@ -120,7 +120,9 @@
     enabled: yes
   register: start_result
 
-- include: etcdctl.yml
+- include_role:
+    name: etcd_common
+    tasks_from: etcdctl.yml
   when: openshift_etcd_etcdctl_profile | default(true) | bool
 
 - name: Set fact etcd_service_status_changed

roles/etcd/tasks/etcdctl.yml → roles/etcd_common/tasks/etcdctl.yml


roles/etcd/templates/etcdctl.sh.j2 → roles/etcd_common/templates/etcdctl.sh.j2