Browse Source

Merge "Include executor variables in initial setup call"

tags/3.3.1
Zuul 5 months ago
parent
commit
04fe1101c7
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      zuul/executor/server.py

+ 2
- 0
zuul/executor/server.py View File

@@ -1865,6 +1865,8 @@ class AnsibleJob(object):
1865 1865
         cmd = ['ansible', '*', verbose, '-m', 'setup',
1866 1866
                '-i', self.jobdir.setup_inventory,
1867 1867
                '-a', 'gather_subset=!all']
1868
+        if self.executor_variables_file is not None:
1869
+            cmd.extend(['-e@%s' % self.executor_variables_file])
1868 1870
 
1869 1871
         result, code = self.runAnsible(
1870 1872
             cmd=cmd, timeout=60, playbook=playbook,

Loading…
Cancel
Save