You maybe able to combine this with real lists to keep efficiency
(Note: I haven't tested this):
- name: Install Standard Packages
yum: state=present name={{ item }}
with_items:
- [ 'perl', 'wget', 'net-tools', 'open-vm-tools' ]
- [ 'open-vm-tools-deploypkg']
ANSIBLE_SQUASH_ACTIONS='apt' ansible-playbook test.yml
Also note, this probably means that there's a bug in the packaging of
open-vm-tools-deploypkg. Might want to report that to the packagers.
If I had to guess without actually looking at the package,
open-vm-tools-deploypkg probably uses some program from open-vm-tools
in its %post or %pre install scriptlets but doesn't specify that as a
proper Requires. As an example, if open-vm-tools-deploypkg ran
something in %post that came from open-vm-tools then the Requires in
open-vm-tools-deploypkg would have to look like Requires(post):
open-vm-tools
-Toshio