diff options
author | Jason DeTiberus <detiber@gmail.com> | 2016-05-30 18:47:15 -0400 |
---|---|---|
committer | Jason DeTiberus <detiber@gmail.com> | 2016-05-30 18:47:15 -0400 |
commit | a24ee80575da72d07dfd1a2cbbc60c91b8c2c256 (patch) | |
tree | d3196af96ba721172b820f9a217bd89924454378 /roles/openshift_ca/tasks | |
parent | 4b734695abf9ca112c9ad3be33f03fcd1a1e7abf (diff) | |
parent | 098d0c24bb2d08e2107b6c4a55d350ae751458f7 (diff) | |
download | openshift-a24ee80575da72d07dfd1a2cbbc60c91b8c2c256.tar.gz openshift-a24ee80575da72d07dfd1a2cbbc60c91b8c2c256.tar.bz2 openshift-a24ee80575da72d07dfd1a2cbbc60c91b8c2c256.tar.xz openshift-a24ee80575da72d07dfd1a2cbbc60c91b8c2c256.zip |
Merge pull request #1962 from abutcher/revert-cert
Revert openshift-certificates changes.
Diffstat (limited to 'roles/openshift_ca/tasks')
-rw-r--r-- | roles/openshift_ca/tasks/main.yml | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/roles/openshift_ca/tasks/main.yml b/roles/openshift_ca/tasks/main.yml deleted file mode 100644 index 497473f22..000000000 --- a/roles/openshift_ca/tasks/main.yml +++ /dev/null @@ -1,56 +0,0 @@ ---- -- fail: - msg: "openshift_ca_host variable must be defined for this role" - when: openshift_ca_host is not defined - -- name: Install the base package for admin tooling - action: > - {{ ansible_pkg_mgr }} - name={{ openshift.common.service_type }}{{ openshift_version }} - state=present - when: not openshift.common.is_containerized | bool - register: install_result - delegate_to: "{{ openshift_ca_host }}" - run_once: true - -- name: Reload generated facts - openshift_facts: - when: install_result | changed - delegate_to: "{{ openshift_ca_host }}" - run_once: true - -- name: Create openshift_ca_config_dir if it does not exist - file: - path: "{{ openshift_ca_config_dir }}" - state: directory - delegate_to: "{{ openshift_ca_host }}" - run_once: true - -- name: Determine if CA must be created - stat: - path: "{{ openshift_ca_config_dir }}/{{ item }}" - register: g_master_ca_stat_result - with_items: - - ca.crt - - ca.key - delegate_to: "{{ openshift_ca_host }}" - run_once: true - -- set_fact: - master_ca_missing: "{{ False in (g_master_ca_stat_result.results - | oo_collect(attribute='stat.exists') - | list) }}" - delegate_to: "{{ openshift_ca_host }}" - run_once: true - -- name: Create the master certificates if they do not already exist - command: > - {{ openshift.common.admin_binary }} create-master-certs - --hostnames={{ openshift_master_hostnames | join(',') }} - --master={{ openshift.master.api_url }} - --public-master={{ openshift.master.public_api_url }} - --cert-dir={{ openshift_ca_config_dir }} - --overwrite=false - when: hostvars[openshift_ca_host].master_ca_missing | bool - delegate_to: "{{ openshift_ca_host }}" - run_once: true |