Hi,
I try to run playbook in parallel but there were errors because some modules are blocked by system:
I tried run ansible instances:
ansible -c local 127.0.0.1 -i 127.0.0.1, -m apt -a “update_cache=yes”
and one returns:
127.0.0.1 | success >> {
“changed”: false
}
another returns:
127.0.0.1 | FAILED >> {
“failed”: true,
“msg”: “Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1437980681.19-103211541037606/apt", line 1565, in \n main()\n File "/root/.ansible/tmp/ansible-tmp-1437980681.19-103211541037606/apt", line 438, in main\n cache.open(progress=None)\n File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 147, in open\n self._records = apt_pkg.PackageRecords(self._cache)\nSystemError: E:Could not open file /var/lib/apt/lists/il.archive.ubuntu.com_ubuntu_dists_precise_restricted_binary-i386_Packages - open (2: No such file or directory), E:Could not open file /var/lib/apt/lists/il.archive.ubuntu.com_ubuntu_dists_precise_main_binary-i386_Packages - open (2: No such file or directory), E:Could not open file /var/lib/apt/lists/il.archive.ubuntu.com_ubuntu_dists_precise_multiverse_binary-amd64_Packages - open (2: No such file or directory), E:Could not open file /var/lib/apt/lists/il.archive.ubuntu.com_ubuntu_dists_precise_universe_binary-amd64_Packages - open (2: No such file or directory), E:Could not open file /var/lib/apt/lists/il.archive.ubuntu.com_ubuntu_dists_precise_restricted_binary-amd64_Packages - open (2: No such file or directory), E:Could not open file /var/lib/apt/lists/il.archive.ubuntu.com_ubuntu_dists_precise_main_binary-amd64_Packages - open (2: No such file or directory)\n”,
“parsed”: false
}
Maybe there are options to wait while one ansible module/OS are use apt/dpkg or whatever???
Regards