Skip to Content
Security Automation with Ansible 2
book

Security Automation with Ansible 2

by Akash Mahajan, MADHU AKULA
December 2017
Intermediate to advanced
364 pages
7h 30m
English
Packt Publishing
Content preview from Security Automation with Ansible 2

Windows security updates playbook

The following playbook is a simple reference from the Ansible documentation at https://docs.ansible.com/ansible/devel/windows_usage.html#installing-updates:

- name: Windows Security Updates  hosts: winblows  tasks:    - name: install all critical and security updates      win_updates:        category_names:        - CriticalUpdates        - SecurityUpdates        state: installed      register: update_result    - name: reboot host if required      win_reboot:      when: update_result.reboot_required
Windows updates playbook in action

The preceding playbook will perform an automated Windows security updates of critical severity and restart the computer if required ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Implementing DevOps with Ansible 2

Implementing DevOps with Ansible 2

Jonathan McAllister
Practical Ansible 2

Practical Ansible 2

Daniel Oh, James Freeman, Fabio Alessandro Locati

Publisher Resources

ISBN: 9781788394512Supplemental Content