gotmax23.update

Ansible Rolle: Update

Rolle gotmax23.update Github Repo [![SourceHut Repo][badge-srht-repo]][link-srht-repo] [![MIT Lizenz][badge-license]][link-license] [![Github Offene Probleme][badge-github-issues]][link-github-issues] [![Github Offene PRs][badge-github-prs]][link-github-prs] [![Rollen-Version][badge-version]][link-version] [![Commits seit letzter Version][badge-commits-since]][link-version] ![Galaxy Rollenqualität][badge-quality] ![Galaxy Rollen-Downloads][badge-downloads] [![Github Actions Molecule Workflow Status][badge-molecule-workflow]][link-molecule-workflow] [![Github Actions Galaxy Workflow Status][badge-galaxy-workflow]][link-galaxy-workflow]

Ansible-Rolle, die nach Systemupdates sucht und optional installiert. Sie bietet auch die Möglichkeit, aktualisierbare Pakete anzuzeigen, ohne sie tatsächlich zu aktualisieren.

Beta-Warnung

Diese Rolle befindet sich derzeit in der Beta-Phase und ist nicht für den produktiven Einsatz gedacht. Brechende Änderungen können zwischen den Versionen auftreten, daher sollten Sie die Versionshinweise sorgfältig lesen.

Anforderungen

Diese Rolle hängt von bestimmten Sammlungen ab, die nicht im ansible-core enthalten sind.

Um die Anforderungen dieser Rolle zu installieren, erstellen Sie eine Datei requirements.yml mit folgendem Inhalt:

---
collections:
  - name: community.general

Wenn Sie ansible-base/ansible-core 2.10 oder später verwenden, führen Sie diesen Befehl aus:

ansible-galaxy install -r requirements.yml

Wenn Sie weiterhin Ansible 2.9 verwenden, führen Sie stattdessen diesen Befehl aus:

ansible-galaxy collection install -r requirements.yml

Rollen-Variablen

Hier sind die Variablen dieser Rolle und ihre Standardwerte, wie in [defaults/main.yml][link-defaults] festgelegt. Wenn Sie möchten, können Sie sie ändern, um das Verhalten dieser Rolle anzupassen.

---
# Standarddatei für Update

# Optionen:
# - `check` um aktualisierbare Pakete anzuzeigen, ohne sie zu aktualisieren
# - `full` um aktualisierbare Pakete anzuzeigen und sie dann zu aktualisieren
# - `run` um alle Pakete zu aktualisieren, ohne sie zuerst aufzulisten
mode: full

# Diese Option legt den apt Upgrade-Typ fest. Verfügbare Optionen sind `dist`, `full`, `safe` und `true`.
# Siehe die [ansible.builtin.apt][1] Modul-Dokumentation für weitere Informationen.
update_apt_upgrade_type: true

# Diese Option legt den Status-Schlüssel für das zypper-Modul fest.
# Wählen Sie `latest` für ein reguläres Upgrade oder `dist-upgrade` für das Äquivalent von `zypper dup`.
# Siehe die [community.general.zypper][2] Modul-Dokumentation für weitere Informationen.
update_zypper_state: latest

# Diese Option bestimmt, ob zypper einen Anbieterwechsel zulassen soll.
update_zypper_allow_vendor_change: false

# Ob nicht benötigte Abhängigkeiten automatisch entfernt werden sollen. Dies gilt nur für dnf, yum und apt.
update_autoremove: false

[1]: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/apt_module.html

[2]: https://docs.ansible.com/ansible/latest/collections/community/general/zypper_module.html

Beispiel-Playbook

---
- name: Konvergenz
  hosts: all
  become: true
  tasks:
    - name: "Update einfügen"
      ansible.builtin.include_role:
        name: gotmax23.update

Kompatibilität

Diese Rolle wird mit der neuesten Version von ansible-core und der neuesten Version der Sammlungen aus Ansible Galaxy getestet. Dies ist die einzige Version von Ansible, die diese Rolle offiziell unterstützt. Es wird eine bestmögliche Unterstützung für andere Versionen bereitgestellt.

Diese Rolle ist mit den folgenden Distributionen kompatibel:

Distribution Versionen
Archlinux alle
Debian buster, bullseye, bookworm
EL 7, 8
Fedora 34, 35, 36
opensuse 15.3, tumbleweed
Ubuntu bionic, focal

Lizenz

[MIT][link-license]

Autor

Maxwell G (@gotmax23)

[badge-srht-repo]: https://img.shields.io/static/v1?label=SourceHut&message=repo&color=blue&logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgdmlld0JveD0iMCAwIDUxMiA1MTIiCiAgIHZlcnNpb249IjEuMSIKICAgaWQ9InN2ZzUxIgogICBzb2RpcG9kaTpkb2NuYW1lPSJzb3VyY2VodXQtd2hpdGUuc3Zn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repo]: https://git.sr.ht/~gotmax23/ansible-role-update [badge-license]: https://img.shields.io/github/license/gotmax23/ansible-role-update.svg?logo=github [link-license]: https://github.com/gotmax23/ansible-role-update/blob/main/LICENSE [badge-github-issues]: https://img.shields.io/github/issues/gotmax23/ansible-role-update.svg?logo=github [link-github-issues]: https://github.com/gotmax23/ansible-role-update/issues [badge-github-prs]: https://img.shields.io/github/issues-pr/gotmax23/ansible-role-update.svg?logo=github [link-github-prs]: https://github.com/gotmax23/ansible-role-update/pulls [badge-version]: https://img.shields.io/github/release/gotmax23/ansible-role-update.svg?logo=github [link-version]: https://github.com/gotmax23/ansible-role-update/releases/latest [badge-commits-since]: https://img.shields.io/github/commits-since/gotmax23/ansible-role-update/latest.svg?logo=github [badge-quality]: https://img.shields.io/ansible/quality/55837.svg?logo=ansible [badge-downloads]: https://img.shields.io/ansible/role/d/55837.svg?logo=ansible [badge-molecule-workflow]: https://github.com/gotmax23/ansible-role-update/actions/workflows/molecule.yml/badge.svg?branch=main [link-molecule-workflow]: https://github.com/gotmax23/ansible-role-update/actions/workflows/molecule.yml [badge-galaxy-workflow]: https://github.com/gotmax23/ansible-role-update/actions/workflows/galaxy.yml/badge.svg [link-galaxy-workflow]: https://github.com/gotmax23/ansible-role-update/actions/workflows/galaxy.yml [link-defaults]: https://github.com/gotmax23/ansible-role-update/blob/main/defaults/main.yml

Über das Projekt

Ansible role that checks for and optionally installs system updates. It also has to the option to print upgradeable packages without actually upgrading them.

Installieren
ansible-galaxy install gotmax23.update
GitHub Repository
Lizenz
mit
Downloads
153
Besitzer
@gotmax:matrix.org | Fedora developer. Ansible Community Steering Committee member. Pythonista. | See my sr.ht profile for my current code.