-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apt module hangs when aptitude asks for user input #7229
Comments
Can you try the following patch on the apt module? diff --git a/library/packaging/apt b/library/packaging/apt index 1bce437..3024ecf 100755 --- a/library/packaging/apt +++ b/library/packaging/apt @@ -392,7 +392,7 @@ def upgrade(m, mode="yes", force=False, if apt_cmd == APT_GET_CMD: force_yes = '--force-yes' else: - force_yes = '' + force_yes = '--assume-yes --allow-untrusted' else: force_yes = '' |
That would only work with There doesn’t seem to be a |
Yes, you would have to force it. The only other option would be to add another configuration option for aptitude (aptitude_options, like dpkg_options), however it looked like most of the relevant configuration options were represented by command-line flags. |
It sounds like we should have some code that catches that there is a prompt and then fails suggesting adding force. |
Hi! Thanks very much for your interest in Ansible. It sincerely means a lot to us. On September 26, 2014, due to enormous levels of contribution to the project Ansible decided to reorganize module repos, making it easier We split modules from the main project off into two repos, http://github.com/ansible/ansible-modules-core and http://github.com/ansible/ansible-modules-extras If you would still like this ticket attended to, and believe this problem or idea is still present in the latest version of Ansible (1.7.2) or the development branch, we will need your help in having it reopened in one of the two new repos, and instructions are provided below. We apologize that we are not able to make this transition happen seamlessly, though this is a one-time change and your help is greatly appreciated -- Both sets of modules will ship with Ansible, though they'll receive slightly different ticket handling. To locate where a module lives between 'core' and 'extras'
Additionally, should you need more help with this, you can ask questions on:
Thank you very much! |
Hi! Thanks very much for your interest in Ansible. It sincerely means a lot to us. On September 26, 2014, due to enormous levels of contribution to the project Ansible decided to reorganize module repos, making it easier We split modules from the main project off into two repos, http://github.com/ansible/ansible-modules-core and http://github.com/ansible/ansible-modules-extras If you would still like this ticket attended to, and believe this problem or idea is still present in the latest version of Ansible (1.7.2) or the development branch, we will need your help in having it reopened in one of the two new repos, and instructions are provided below. We apologize that we are not able to make this transition happen seamlessly, though this is a one-time change and your help is greatly appreciated -- Both sets of modules will ship with Ansible, though they'll receive slightly different ticket handling. To locate where a module lives between 'core' and 'extras'
Additionally, should you need more help with this, you can ask questions on:
Thank you very much! |
Issue Type:
Bug Report
Ansible Version:
ansible 1.6 (devel d287179) last updated 2014/04/30 10:47:45 (GMT +200)
Environment:
Debian 7
Summary:
aptitude
unfortunately says the following on its man page:This is contrary to
apt-get -y
, which will simply abort after having found a ‘“dangerous” action’.So, in short using
-y
is not enough to makeaptitude
fully non-interactive and may regularly (e.g. it also chokes on non-authenticated packages) cause ansible to freeze without further notice.Steps To Reproduce:
Example task
apt: upgrade=safe update_cache=yes
to be executed on a machine with e.g. unauthenticated packages.Real output of
aptitude safe-upgrade -y
on that machine would be:… and there it waits for user input.
Expected Results:
Ansible should simply fail the apt task.
Actual Results:
Ansible hangs and gives no information whatsoever.
The text was updated successfully, but these errors were encountered: