mirror of
https://github.com/roles-ansible/ansible_role_packages.git
synced 2024-08-16 10:19:51 +02:00
Add option to upgrade packages
This commit is contained in:
parent
b8936e46d1
commit
aa14284301
3 changed files with 4 additions and 2 deletions
|
@ -13,11 +13,12 @@ By default it will also add the [ETH Zürich Debian Packages Mirror](https://deb
|
|||
|
||||
| variable | default value | useage |
|
||||
| --- | --- | --- |
|
||||
| ``l3d_pkgs__package_state`` | ``present`` | Package State, set to ``latest`` to upgrade packages managed by this role |
|
||||
| ``l3d_pkgs__install_advanced`` | ``false`` | Install some advanced packages like tcpdump, mtr, fio and ethertools. See ``vars/main.yml`` for details |
|
||||
| ``l3d_pkgs__install_python`` | ``false`` | Install some Python packages like python3-pip. See ``vars/main.yml`` for details |
|
||||
| ``l3d_pkgs__install_cli`` | ``false`` | Install some CLI packages like htop, ranger and asciinema. See ``vars/main.yml`` for details |
|
||||
| ``l3d_pkgs__install_extra_packages`` | | List of additional packages to install |
|
||||
| ``l3d_pkgs__package_state`` | ``present`` | Package State, set to ``latest`` to upgrade packages managed by this role |
|
||||
| ``l3d_pkgs__upgrade_all`` | ``false`` | Can upgrade all packages if ``l3d_pkgs__package_state`` is to ``latest`` and the value is ``true`` |
|
||||
| ``l3d_pkgs__adding_ethz`` | ``true`` | Adding the swiss ETH package mirror |
|
||||
| ``l3d_pkgs__ethz_contrib`` | ``true`` | contrib packages contain DFSG-compliant software |
|
||||
| ``l3d_pkgs__ethz_non_free`` | ``true`` | non-free contains software that does not comply with the DFSG. |
|
||||
|
|
|
@ -11,6 +11,7 @@ l3d_pkgs__ethz__backports: true
|
|||
# Methods for updating Packages
|
||||
# set this to latest for updating packages managed by this role
|
||||
l3d_pkgs__package_state: 'present'
|
||||
l3d_pkgs__upgrade_all: false
|
||||
|
||||
# Select packages to install
|
||||
l3d_pkgs__install_advanced: false
|
||||
|
|
|
@ -23,4 +23,4 @@
|
|||
name: "*"
|
||||
state: "{{ base__package_state }}"
|
||||
when:
|
||||
- base__upgrade_packages_to_latest_version | bool
|
||||
- l3d_pkgs__upgrade_all | bool
|
||||
|
|
Loading…
Reference in a new issue