Thats a great idea, thanks!! I will give it a try On Tuesday, 2 February 2016 20:06:08 UTC, tkuratomi wrote: > > On Mon, Feb 1, 2016 at 10:55 AM, Brian Coca <[email protected] > <javascript:>> wrote: > > in 2.0 you can set ANSIBLE_SQUASH_ACTIONS env var or squash_actions in > > ansible.cfg to not include the yum module (default is "apt, dnf, > > package, pkgng, yum, zypper"). Just note that now you'll be running 1 > > task per item vs all items in 1 shot and will be much slower. > > > 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 >
-- 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/a23030ae-5ec1-4474-a13d-b8f928f5d647%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
