1
0
Fork 0
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:
L3D 2023-07-31 18:23:11 +02:00
parent b8936e46d1
commit aa14284301
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 4 additions and 2 deletions

View file

@ -13,11 +13,12 @@ By default it will also add the [ETH Zürich Debian Packages Mirror](https://deb
| variable | default value | useage | | 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_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_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_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__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__adding_ethz`` | ``true`` | Adding the swiss ETH package mirror |
| ``l3d_pkgs__ethz_contrib`` | ``true`` | contrib packages contain DFSG-compliant software | | ``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. | | ``l3d_pkgs__ethz_non_free`` | ``true`` | non-free contains software that does not comply with the DFSG. |

View file

@ -11,6 +11,7 @@ l3d_pkgs__ethz__backports: true
# Methods for updating Packages # Methods for updating Packages
# set this to latest for updating packages managed by this role # set this to latest for updating packages managed by this role
l3d_pkgs__package_state: 'present' l3d_pkgs__package_state: 'present'
l3d_pkgs__upgrade_all: false
# Select packages to install # Select packages to install
l3d_pkgs__install_advanced: false l3d_pkgs__install_advanced: false

View file

@ -23,4 +23,4 @@
name: "*" name: "*"
state: "{{ base__package_state }}" state: "{{ base__package_state }}"
when: when:
- base__upgrade_packages_to_latest_version | bool - l3d_pkgs__upgrade_all | bool