Skip to content

Commit

Permalink
(might not be needed) update PATH for prepare and debug_deploy
Browse files Browse the repository at this point in the history
TODO: Add updates to debug_deploy
  • Loading branch information
elfiesmelfie committed Dec 18, 2023
1 parent 98ea2f4 commit d781ba4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/debug_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
name: Get some info about the environment
gather_facts: true
ignore_errors: true
environment:
PATH: "~/.crc/bin:~/.crc/bin/oc:~/bin:{{ ansible_env.PATH }}"
tasks:
- name: Show hostvars
ansible.builtin.debug:
Expand Down
9 changes: 9 additions & 0 deletions ci/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
hosts: controller
vars:
ci_framework_dir: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}"
environment:
PATH: "~/.crc/bin:~/.crc/bin/oc:~/bin:{{ ansible_env.PATH }}"
tasks:
# this task is temperory, eventually, this whole play will be in a separate file, which will do the common tasks already.
- name: "Set the sto_dir if it isn't already set"
Expand All @@ -16,6 +18,13 @@
ansible-playbook -e@{{ ansible_user_dir }}/ci-framework-data/artifacts/parameters/zuul-params.yml {{ ci_framework_dir }}/ci_framework/playbooks/01-bootstrap.yml
chdir: "{{ ci_framework_dir }}"

- name: "Check for oc"
ansible.builtin.shell:
which oc
ignore_errors: true

## check for oc in the .crc dir
#
# need -e zuul-parameters-file
# in $HOME/zuul-output-logs/ ## should be my logfile dir in jobs
- ansible.builtin.copy:
Expand Down

0 comments on commit d781ba4

Please sign in to comment.