Skip to content

Commit b19f34a

Browse files
committed
DNM: remove default for test project
checking that the ansible env exists as expected ---- update! Ansible env did not work as expected, reverting to ansible_ssh_user and doing a sanity check
1 parent b399466 commit b19f34a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

roles/reproducer/defaults/main.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717

1818
# All variables intended for modification should be placed in this file.
1919
# All variables within this role should have a prefix of "cifmw_reproducer"
20-
cifmw_reproducer_controller_user: >-
21-
{{ hostvars['controller-0']['ansible_env']['USER'] | default('zuul') }}
22-
cifmw_reproducer_controller_user_dir: >-
23-
{{ hostvars['controller-0']['ansible_env']['HOME'] |
24-
default('/home/' ~ cifmw_reproducer_controller_user) }}
20+
cifmw_reproducer_controller_user: "{{ hostvars['controller-0']['ansible_ssh_user'] }}"
21+
cifmw_reproducer_controller_user_dir: "/home/{{ hostvars['controller-0']['ansible_ssh_user'] }}"
22+
2523
cifmw_reproducer_basedir: "{{ cifmw_basedir | default( ansible_user_dir ~ '/ci-framework-data') }}"
2624
cifmw_reproducer_src_dir: "{{ cifmw_ci_src_dir | default( ansible_user_dir ~ '/src') }}"
2725
cifmw_reproducer_kubecfg: "{{ cifmw_libvirt_manager_configuration.vms.crc.image_local_dir }}/kubeconfig"

0 commit comments

Comments
 (0)