cfff72e9db
In answer to #2540, `aptitude` was introduced as tool of choice for running upgrades in the apt module and installing new packages that arise as dependencies during upgrades. This recently lead to problems, as for example Ubuntu Xenial (16.04) ships without aptitude (installed). Studying the man pages of both apt-get and aptitude, it appears that we can achieve the effects of `aptitude safe-upgrade` using ``` apt-get upgrade --with-new-pkgs --autoremove ``` while `aptitude full-upgrade` seems to be identical to `apt-get dist-upgrade`. We use `apt-get` as described above as a fall-back in case that `aptitude` cannot be found, issuing a warning when it does so. Furthermore it introduces a flag `force_apt_get` which may be used to enforce usage of apt-get (which does not issue a warning). The integration tests are updated accordingly. Cf. also the discussion in #27370. Fixes #18987
52 lines
1.2 KiB
Text
52 lines
1.2 KiB
Text
[local]
|
|
testhost ansible_ssh_host=127.0.0.1 ansible_connection=local
|
|
testhost2 ansible_ssh_host=127.0.0.1 ansible_connection=local
|
|
# For testing delegate_to
|
|
testhost3 ansible_ssh_host=127.0.0.3
|
|
testhost4 ansible_ssh_host=127.0.0.4
|
|
# For testing fact gathering
|
|
facthost[0:20] ansible_host=1270.0.0.1 ansible_connection=local
|
|
|
|
[binary_modules]
|
|
testhost_binary_modules ansible_host=127.0.0.1 ansible_connection=local
|
|
|
|
[local_group]
|
|
kube-pippin.knf.local
|
|
|
|
# the following inline declarations are accompanied
|
|
# by (preferred) group_vars/ and host_vars/ variables
|
|
# and are used in testing of variable precedence
|
|
|
|
[inven_overridehosts]
|
|
invenoverride ansible_ssh_host=127.0.0.1 ansible_connection=local
|
|
|
|
[all:vars]
|
|
extra_var_override=FROM_INVENTORY
|
|
inven_var=inventory_var
|
|
unicode_host_var=CaféEñyei
|
|
|
|
[inven_overridehosts:vars]
|
|
foo=foo
|
|
var_dir=vars
|
|
|
|
[arbitrary_parent:children]
|
|
local
|
|
|
|
[local:vars]
|
|
parent_var=6000
|
|
groups_tree_var=5000
|
|
|
|
[arbitrary_parent:vars]
|
|
groups_tree_var=4000
|
|
overridden_in_parent=1000
|
|
|
|
[arbitrary_grandparent:children]
|
|
arbitrary_parent
|
|
|
|
[arbitrary_grandparent:vars]
|
|
groups_tree_var=3000
|
|
grandparent_var=2000
|
|
overridden_in_parent=2000
|
|
|
|
[amazon]
|
|
localhost ansible_ssh_host=127.0.0.1 ansible_connection=local
|