Skip to content

it-pappa/Ansible-Role_linux_os_patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

#Patch linux VM's

This playbook/role will first determind the OS of the VM (Distro), before it will start patching it.

This playbook works on:

  • Debian
  • Centos
  • Ubuntu
  • RHEL8
  • Rocky Linux 8.5

on processor architecture:

  • x64
  • ARM

✅ Playbook requirements:

  • Sudo access to the VM
  • The target machine needs Internet access
  • Ansible installed on the host running the playbook

Example playbook:

- hosts: ip-address
  gather_facts: true
  become: yes

  roles:
  - linux_os_patch

Example playbook run:

ansible-playbook setup.yml -i inventory --ask-become-pass

The playbook will then ask for the 'Sudo' password for the host target.

About

Ansible Role to determind and patch linux hosts

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published