batch: fails when not all shards are in the input file
batch
at the moment requires all shards to be present in the input file:
TASK [batch : Transfer input to hosts] ********************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
fatal: [host3]: FAILED! => {"changed": false, "msg": "Could not find or access 'web-users_host3.dat'\nSearched in:\n\t/home/godog/src/testbed/float/roles/batch/files/web-users_host3.dat\n\t/home/godog/src/testbed/float/roles/batch/web-users_host3.dat\n\t/home/godog/src/testbed/float/roles/batch/tasks/files/web-users_host3.dat\n\t/home/godog/src/testbed/float/roles/batch/tasks/web-users_host3.dat\n\t/home/godog/src/testbed/rules/playbooks/files/web-users_host3.dat\n\t/home/godog/src/testbed/rules/playbooks/web-users_host3.dat on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
- hosts: web-users
roles:
- batch
vars:
job_name: web-users
input_file: "{{ playbook_dir }}/../../testdata/web-users.dat"
$ web-users.dat
host2 testdata-install-web-users tre