Skip to content

Latest commit

 

History

History
executable file
·
35 lines (28 loc) · 731 Bytes

README.md

File metadata and controls

executable file
·
35 lines (28 loc) · 731 Bytes

#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.