summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-06-23 11:25:30 -0400
committerScott Dodson <sdodson@redhat.com>2017-06-23 11:25:30 -0400
commit5b21d78d166a3266064cf0ead4f6e4e9a2957c22 (patch)
tree831ca44de49063626b69609945f9feefb6b04b5c
parent272288b9d7a771f72af1e6b9c3fbb68a1030b6a3 (diff)
downloadopenshift-5b21d78d166a3266064cf0ead4f6e4e9a2957c22.tar.gz
openshift-5b21d78d166a3266064cf0ead4f6e4e9a2957c22.tar.bz2
openshift-5b21d78d166a3266064cf0ead4f6e4e9a2957c22.tar.xz
openshift-5b21d78d166a3266064cf0ead4f6e4e9a2957c22.zip
Get rid of openshift_facts dep in rhel_subscribe
Because you can't install PyYAML before you subscribe
-rw-r--r--roles/rhel_subscribe/meta/main.yml3
-rw-r--r--roles/rhel_subscribe/tasks/main.yml10
2 files changed, 9 insertions, 4 deletions
diff --git a/roles/rhel_subscribe/meta/main.yml b/roles/rhel_subscribe/meta/main.yml
index 0bbeadd34..23d65c7ef 100644
--- a/roles/rhel_subscribe/meta/main.yml
+++ b/roles/rhel_subscribe/meta/main.yml
@@ -1,3 +1,2 @@
---
-dependencies:
- - role: openshift_facts
+dependencies: []
diff --git a/roles/rhel_subscribe/tasks/main.yml b/roles/rhel_subscribe/tasks/main.yml
index 28c3c7080..453044a6e 100644
--- a/roles/rhel_subscribe/tasks/main.yml
+++ b/roles/rhel_subscribe/tasks/main.yml
@@ -21,6 +21,11 @@
msg: Either rhsub_pass or the rhel_subscription_pass env variable are required for this role.
when: rhel_subscription_pass is not defined
+- name: Detecting Atomic Host Operating System
+ stat:
+ path: /run/ostree-booted
+ register: ostree_booted
+
- name: Satellite preparation
command: "rpm -Uvh http://{{ rhel_subscription_server }}/pub/katello-ca-consumer-latest.noarch.rpm"
args:
@@ -57,5 +62,6 @@
when: openshift_pool_id.stdout != ''
- include: enterprise.yml
- when: deployment_type in [ 'enterprise', 'atomic-enterprise', 'openshift-enterprise' ] and
- not openshift.common.is_atomic | bool
+ when:
+ - deployment_type in [ 'enterprise', 'atomic-enterprise', 'openshift-enterprise' ]
+ - not ostree_booted.stat.exists | bool