Skip to content
Permalink
Browse files

Remove ansible check for inventory generation

Since we use the same script on OSP15, remove the
restriction on running in RHEL8.

Change-Id: I4c5644b717229281668e725b9fe583406fdc5f8d
Signed-off-by: Charles Short <chucks@redhat.com>
  • Loading branch information...
zulcss committed Aug 15, 2019
1 parent 3d13705 commit c670032c252f7f9870cb8e455c1fc6daebd2236a
Showing with 3 additions and 3 deletions.
  1. +3 −3 ansible/install/roles/browbeat/tasks/main.yml
@@ -102,18 +102,18 @@

- name: Generate hosts and ssh-config on Browbeat Machine - Default(stack)
shell: . {{ home_dir }}/stackrc; {{ browbeat_path }}/ansible/generate_tripleo_hostfile.sh -t localhost --user stack
when: tripleo and (not hosts_file_exists.stat.exists or not hosts_file_exists.stat.isreg) and ansible_user!= "zuul" and ansible_distribution_major_version < '8'
when: tripleo and (not hosts_file_exists.stat.exists or not hosts_file_exists.stat.isreg) and ansible_user!= "zuul"

- name: Generate hosts and ssh-config on Browbeat Machine - Zuul
shell: . {{ home_dir }}/stackrc; {{ browbeat_path }}/ansible/generate_tripleo_hostfile.sh -t localhost --user zuul
when: tripleo and (not hosts_file_exists.stat.exists or not hosts_file_exists.stat.isreg) and ansible_user== "zuul" and ansible_distribution_major_version < '8'
when: tripleo and (not hosts_file_exists.stat.exists or not hosts_file_exists.stat.isreg) and ansible_user== "zuul"

- name: Move files to correct location
command: mv {{ home_dir }}/{{item}} {{ browbeat_path }}/ansible/{{item}}
with_items:
- hosts
- heat-admin-id_rsa
when: "(tripleo and (not hosts_file_exists.stat.exists or not hosts_file_exists.stat.isreg)) and ansible_distribution_major_version < '8'"
when: "(tripleo and (not hosts_file_exists.stat.exists or not hosts_file_exists.stat.isreg))"

- name: Install requirements.txt into browbeat-venv
pip:

0 comments on commit c670032

Please sign in to comment.
You can’t perform that action at this time.