Skip to content

Commit 38d4c9c

Browse files
committed
Move ansible_user_dir to group_vars [5/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 38d4c9c

File tree

11 files changed

+1
-14
lines changed

11 files changed

+1
-14
lines changed

roles/adoption_osp_deploy/molecule/default/converge.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
cifmw_adoption_osp_deploy_repos: []
1313
cifmw_adoption_source_scenario_path: "."
1414
cifmw_basedir: "{{ playbook_dir }}"
15-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
1615

1716
tasks:
1817
- name: Gather stack nodes and facts

roles/compliance/molecule/default/converge.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,13 @@
1818
- name: Converge test of controller tasks
1919
hosts: all
2020
vars:
21-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
2221
cifmw_compliance_dry_run: true
2322
roles:
2423
- role: "compliance"
2524

2625
- name: Converge test of compute tasks
2726
hosts: all
2827
vars:
29-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
3028
cifmw_compliance_dry_run: true
3129
roles:
3230
- role: "compliance"

roles/nat64_appliance/molecule/default/cleanup.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
- name: Cleanup
22
hosts: instance
3-
vars:
4-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
53
tasks:
64
- name: "Destroy the test-node"
75
community.libvirt.virt:

roles/nat64_appliance/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: instance
1919
vars:
20-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
2120
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
2221
tasks:
2322
- name: Crate SSH keypair

roles/nat64_appliance/molecule/default/prepare.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
- name: Prepare
1818
hosts: all
1919
vars:
20-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
2120
cifmw_basedir: "{{ ansible_user_dir }}/ci-framework-data"
2221
pre_tasks:
2322
- name: Create custom basedir

roles/shiftstack/molecule/default/cleanup.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
- name: Cleanup
1818
hosts: all
1919
vars:
20-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
2120
cifmw_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
2221
cifmw_openshift_kubeconfig: "{{ ansible_user_dir }}/.crc/machines/crc/kubeconfig"
2322
openstack_namespace_name: openstack

roles/shiftstack/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_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
2322
cifmw_openshift_kubeconfig: "{{ ansible_user_dir }}/.crc/machines/crc/kubeconfig"
2423
cifmw_shiftstack_run_playbook: cifmw-gate.yaml

roles/shiftstack/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_path: "{{ ansible_user_dir }}/.crc/bin:{{ ansible_user_dir }}/.crc/bin/oc:{{ ansible_user_dir }}/bin:{{ ansible_env.PATH }}"
2322
cifmw_openshift_kubeconfig: "{{ ansible_user_dir }}/.crc/machines/crc/kubeconfig"
2423
openstack_namespace_name: openstack

roles/tofu/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
cifmw_install_yamls_tasks_out: "{{ ansible_user_dir }}/zuul-jobs/roles/install_yamls_makes/tasks"
2423
cifmw_install_yamls_defaults:

roles/update/molecule/default/converge.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
- name: Converge
1919
hosts: all
2020
vars:
21-
ansible_user_dir: "{{ lookup('env', 'HOME') }}"
2221
cifmw_update_run_dryrun: true
23-
cifmw_openshift_kubeconfig: "{{ lookup('env', 'HOME') }}/.crc/machines/crc/kubeconfig"
22+
cifmw_openshift_kubeconfig: "{{ ansible_user_dir }}/.crc/machines/crc/kubeconfig"
2423
cifmw_nolog: false
2524
tasks:
2625
- name: Initialize monitoring

0 commit comments

Comments
 (0)