Skip to content

An Ansible role to apply system updates using the `dnf` package manager.

Notifications You must be signed in to change notification settings

rossijonas/ansible-role-dnf-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-role-dnf-update

An Ansible role to apply system updates using the dnf package manager.

About

Use this Ansible role to apply system updates or 'security only' updates to systems using the dnf package manager.

This Ansible role:

  • Applies the available system updates
  • Remove obsolete packages
  • Reboot the system

Status:

Actions Status

Requirements

Role Variables

dnfupdate_security_only

Set the role to only apply updates marked as security updates.

  • Type: bool

  • Default: false

    dnfupdate_security_only: true
    

Dependencies

(None)

Installation

  1. Create a requirements.yml file at the your project's top level directory and include the following:
---
- name: dnfupdate
  src: https://github.com/rossijonas/ansible-role-dnf-update
  1. Use ansible-galaxy command to fetch dependencies:
$ ansible-galaxy install -r requirements.yml

Example Playbooks

  • Apply all updates available:
---
- hosts: servers
  roles:
    - dnfupdate
  • Apply security updates only:
---
- hosts: servers
  roles:
    - role: dnfupdate
      vars: 
        dnfupdate_security_only: true

License

MIT

Author Information

GitHub profile: https://github.com/rossijonas

-> See more Ansible related repositories from this author