summaryrefslogtreecommitdiffstats
path: root/playbooks/init
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-12-14 15:54:45 -0500
committerMichael Gugino <mgugino@redhat.com>2017-12-14 16:34:00 -0500
commitfe801cb7fbf983ef397257117da30ce4ccc938b4 (patch)
treec6e9dabf625f5e2f17ef2fab516839638f4d4957 /playbooks/init
parent22794be6953a6896bbb550e3bb3c82caf202c8e2 (diff)
downloadopenshift-fe801cb7fbf983ef397257117da30ce4ccc938b4.tar.gz
openshift-fe801cb7fbf983ef397257117da30ce4ccc938b4.tar.bz2
openshift-fe801cb7fbf983ef397257117da30ce4ccc938b4.tar.xz
openshift-fe801cb7fbf983ef397257117da30ce4ccc938b4.zip
Move repo and subscribe to prerequisites
This commit refactors some steps in rhel subscribe and moves repos.yml from init/main to prerequisites.
Diffstat (limited to 'playbooks/init')
-rw-r--r--playbooks/init/main.yml2
-rw-r--r--playbooks/init/repos.yml4
2 files changed, 2 insertions, 4 deletions
diff --git a/playbooks/init/main.yml b/playbooks/init/main.yml
index b2b972a7d..06e8ba504 100644
--- a/playbooks/init/main.yml
+++ b/playbooks/init/main.yml
@@ -23,8 +23,6 @@
- import_playbook: validate_hostnames.yml
when: not (skip_validate_hostnames | default(False))
-- import_playbook: repos.yml
-
- import_playbook: version.yml
when: not (skip_verison | default(False))
diff --git a/playbooks/init/repos.yml b/playbooks/init/repos.yml
index 4967b8f13..048b09e60 100644
--- a/playbooks/init/repos.yml
+++ b/playbooks/init/repos.yml
@@ -9,8 +9,8 @@
when:
- ansible_distribution == 'RedHat'
- deployment_type == 'openshift-enterprise'
- - (rhel_subscription_user or rhsub_user) is defined
- - (rhel_subscription_password or rhsub_pass) is defined
+ - rhsub_user | default(False)
+ - rhsub_pass | default(False)
- name: initialize openshift repos
include_role:
name: openshift_repos