From ba7a331a41b086fdad66f04b6df54c2ab5d938ef Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Nov 16 2021 09:19:35 +0000 Subject: [PATCH 1/3] DNM - CI test --- diff --git a/.zuul.yaml b/.zuul.yaml index df1e0fd..4d18e36 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,14 +1,22 @@ --- +- job: + name: atestjob + run: playbooks/test.yaml + nodeset: + nodes: + - name: container + label: zuul-worker-f34 + +- job: + name: atestjob2 + parent: repo-rpm-lint + nodeset: + nodes: + - name: container + label: zuul-worker-f34 + - project: check: jobs: - - tox: - vars: - tox_envlist: ALL - tox_install_siblings: false - gate: - jobs: - - tox: - vars: - tox_envlist: ALL - tox_install_siblings: false + - atestjob + - atestjob2 diff --git a/playbooks/test.yaml b/playbooks/test.yaml new file mode 100644 index 0000000..cc55e14 --- /dev/null +++ b/playbooks/test.yaml @@ -0,0 +1,8 @@ +- hosts: all + tasks: + - name: "Display ansible_user_dir" + shell: echo {{ ansible_user_dir }} + - name: "Display current directory" + shell: pwd . + - name: "Display HOME" + shell: "echo $HOME" From c0ae4f3031a25b6fe0b03e96d14c3f7209b66d72 Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Nov 16 2021 09:26:42 +0000 Subject: [PATCH 2/3] set var in the job def --- diff --git a/.zuul.yaml b/.zuul.yaml index 4d18e36..1101a14 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -2,6 +2,8 @@ - job: name: atestjob run: playbooks/test.yaml + vars: + anisble_user_dir: "/workspace" nodeset: nodes: - name: container From 3560773311581d5ea2b2dc13af3000ee51e86eeb Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Nov 16 2021 09:35:59 +0000 Subject: [PATCH 3/3] test with ansible_env.HOME --- diff --git a/.zuul.yaml b/.zuul.yaml index 1101a14..4d18e36 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -2,8 +2,6 @@ - job: name: atestjob run: playbooks/test.yaml - vars: - anisble_user_dir: "/workspace" nodeset: nodes: - name: container diff --git a/playbooks/test.yaml b/playbooks/test.yaml index cc55e14..5fb8e01 100644 --- a/playbooks/test.yaml +++ b/playbooks/test.yaml @@ -6,3 +6,5 @@ shell: pwd . - name: "Display HOME" shell: "echo $HOME" + - name: "Display ansible_env.HOME" + shell: echo {{ ansible_env.HOME }}