Skip to content

ngochieu642/ansible_role_security_patching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: Security Patching

An Ansible role that run security updates on Linux Currently support Ubuntu and Oracle Linux

Requirements

None

Role Variables

log_file_path: Path to the log file on host

Dependencies

None

Example Playbook

---
- name: Patch Bastion Host
  hosts: bastion
  become: yes
  vars:
    log_file_path: "/var/log/security_patching_{{ ansible_date_time.date }}.log"

  pre_tasks:
    - name: Ensure log directory exists
      file:
        path: "/var/log"
        state: directory
        mode: '0755'

  roles:
    - ngochieu642.security_patching

License

MIT

Author Information

Created in 2024 by ngochieu642

About

Security patching for Ubuntu/Oracle Linux

Resources

Stars

Watchers

Forks

Packages

No packages published