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 <module>\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

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/034f2a61-bd7c-4932-8087-b92c56b17101%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to