diff --git a/ansible/roles/jenkins-worker/tasks/main.yml b/ansible/roles/jenkins-worker/tasks/main.yml index 6c1e10284..7f34c2a9b 100644 --- a/ansible/roles/jenkins-worker/tasks/main.yml +++ b/ansible/roles/jenkins-worker/tasks/main.yml @@ -17,6 +17,11 @@ - name: set jobs_env from server_jobs or ansible_processor_vcpus set_fact: jobs_env: "{{ server_jobs|default(ansible_processor_vcpus) }}" + when: server_jobs is defined or ansible_processor_vcpus is defined + +- name: set jobs_env from server_jobs or ansible_processor_vcpus + set_fact: + jobs_env: "2" when: jobs_env is undefined - name: create group