Skip to content

Commit 8799e46

Browse files
committed
Move ansible_user_dir to group_vars [3/5]
This commit is one of the steps of replacing common used vars with group_vars to improve overall maintenance of variables in ci-framework Signed-off-by: Amartya Sinha <[email protected]>
1 parent 84c46b6 commit 8799e46

File tree

12 files changed

+4
-16
lines changed

12 files changed

+4
-16
lines changed

roles/build_containers/molecule/default/prepare.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
- name: Prepare
1919
hosts: all
2020
vars:
21-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
2221
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data/"
2322
roles:
2423
- role: test_deps

roles/build_containers/molecule/hotfix/prepare.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
- name: Prepare
1919
hosts: all
2020
vars:
21-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
2221
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data/"
2322
roles:
2423
- role: test_deps

roles/build_openstack_packages/molecule/default/converge.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
- name: Converge
1919
hosts: all
2020
vars:
21-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
2221
cifmw_basedir: "{{ cifmw_project_dir_absolute }}"
2322
cifmw_bop_openstack_release: master
2423
cifmw_bop_dlrn_baseurl: https://trunk.rdoproject.org/centos9-master

roles/build_openstack_packages/molecule/default/prepare.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
- name: Prepare
1919
hosts: all
2020
vars:
21-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
2221
cifmw_basedir: "{{ cifmw_project_dir_absolute }}"
2322
roles:
2423
- role: test_deps

roles/cert_manager/tasks/validate_certs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
- name: Create $HOME/bin dir
1818
ansible.builtin.file:
19-
path: "{{ lookup('env', 'HOME') }}/bin"
19+
path: "{{ ansible_user_dir }}/bin"
2020
state: directory
2121
mode: '0755'
2222

@@ -30,11 +30,11 @@
3030
_arch: "{{ lookup('pipe', 'go env GOARCH') }}"
3131
ansible.builtin.get_url:
3232
url: "https://github.com/cert-manager/cmctl/releases/{{ cifmw_cert_manager_version }}/download/cmctl_{{ _os }}_{{ _arch }}"
33-
dest: "{{ lookup('env', 'HOME') }}/bin/cmctl"
33+
dest: "{{ ansible_user_dir }}/bin/cmctl"
3434
mode: "0755"
3535

3636
- name: Verify cert_manager api
3737
environment:
3838
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
3939
PATH: "{{ cifmw_path }}"
40-
ansible.builtin.command: "{{ lookup('env', 'HOME') }}/bin/cmctl check api --wait=2m"
40+
ansible.builtin.command: "{{ ansible_user_dir }}/bin/cmctl check api --wait=2m"

roles/devscripts/molecule/default/prepare.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
hosts: all
2020

2121
vars:
22-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
2322
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
2423
cifmw_use_libvirt: true
2524

roles/edpm_build_images/molecule/default/converge.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
- name: Converge
1919
hosts: all
2020
vars:
21-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
2221
cifmw_edpm_build_images_dry_run: true
2322
cifmw_edpm_build_images_via_rpm: false
2423
roles:

roles/hci_prepare/molecule/default/converge.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
- name: Converge
1818
hosts: all
1919
vars:
20-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
2120
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
2221
cifmw_path: "/path/to/bin"
2322
cifmw_openshift_kubeconfig: "path/to/kubeconfig"

roles/hive/molecule/default/converge.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
hosts: all
1919

2020
vars:
21-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
2221
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
2322
cifmw_hive_artifacts_dir: "{{ ansible_user_dir }}/ci-framework-data"
2423
cifmw_hive_kubeconfig: test_path

roles/hive/molecule/default/prepare.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
hosts: all
2020

2121
vars:
22-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
2322
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
2423

2524
roles:

0 commit comments

Comments
 (0)