Using "apt-get -f install" in Ansible

I want to run the apt-get --fix-broken install command in Ansible. This does not work if I use command: apt-get -f install , and the apt module does not specify a parameter to specify this option. How can I do this in Ansible?

+5
source share
1 answer

Codification of my (apparently useful) answer from comments:

Try adding -y to the command.

+1
source

All Articles