فهرست منبع

Move rhel_subscribe tasks to its own playbook

Allows reuse out of vagrant, e.g. to subscribe systems by its own
Pep Turró Mauri 10 سال پیش
والد
کامیت
3548472edd
2فایلهای تغییر یافته به همراه13 افزوده شده و 11 حذف شده
  1. 12 0
      playbooks/byo/rhel_subscribe.yml
  2. 1 11
      playbooks/byo/vagrant.yml

+ 12 - 0
playbooks/byo/rhel_subscribe.yml

@@ -0,0 +1,12 @@
+---
+- hosts: all
+  vars:
+    deployment_type: "{{ openshift_deployment_type }}"
+  roles:
+  - role: rhel_subscribe
+    when: openshift_deployment_type == "enterprise" and
+          ansible_distribution == "RedHat" and
+          lookup('oo_option', 'rhel_skip_subscription') | default(rhsub_skip, True) |
+          default('no', True) | lower in ['no', 'false']
+  - openshift_repos
+  - os_update_latest

+ 1 - 11
playbooks/byo/vagrant.yml

@@ -1,14 +1,4 @@
 ---
-- hosts: all
-  vars:
-    deployment_type: "{{ openshift_deployment_type }}"
-  roles:
-  - role: rhel_subscribe
-    when: openshift_deployment_type == "enterprise" and
-          ansible_distribution == "RedHat" and
-          lookup('oo_option', 'rhel_skip_subscription') | default(rhsub_skip, True) |
-          default('no', True) | lower in ['no', 'false']
-  - openshift_repos
-  - os_update_latest
+- include: rhel_subscribe.yml
 
 - include: config.yml