Skip to content

kohlidevops/ansible-patching

Repository files navigation

To patch the linux based host such as Ubuntu and RHEL using Ansible playbook

To launch Ansible server and linux based hosts

You can use below link to install and configure and ensure its available

https://github.com/kohlidevops/anisble-shell-collect-system-metrics

image

I can able to ping to my linux based hosts

image

Ansible to update packages to linux based hosts

Here is a basic example of an Ansible playbook to update packages on Ubuntu and RHEL (Red Hat Enterprise Linux) machines. Note that the exact commands may vary slightly based on the specific package manager used by the distribution.

You can use below link to work on it.

https://github.com/kohlidevops/ansible-patching/blob/main/upgradingpackage.yml

image

Ansible playbook to update kernel

You can use below link to work on it

https://github.com/kohlidevops/ansible-patching/blob/main/upgradingkernel.yml

image

Ansible playbook to install httpd and Apache2 to linux hosts

You can use below link to install webserver

https://github.com/kohlidevops/ansible-patching/blob/main/HttpdApache2Installation.yml

image

Ansible playbook to copy index.html to Linux hosts and restart the machine

https://github.com/kohlidevops/ansible-patching/blob/main/CopyingIndexHtml.yml

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published