Created
February 9, 2017 23:09
-
-
Save andrekutianski/595f5aea3a7852742a9d177a75b8b8c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: all | |
gather_facts: yes | |
remote_user: craun | |
serial: "25%" | |
sudo: yes | |
tasks: | |
- name: Update OpenSSL and OpenSSH (Debian) | |
apt: name={{ item }} | |
state=latest | |
update_cache=yes | |
with_items: | |
- openssl | |
- openssh-client | |
- openssh-server | |
when: ansible_os_family == "Debian" | |
- name: Update OpenSSL and OpenSSH (RedHat) | |
yum: name={{ item }} | |
state=latest | |
update_cache=yes | |
with_items: | |
- openssl | |
- openssh-client | |
- openssh-server | |
when: ansible_os_family == "RedHat" | |
post_tasks: | |
- name: Reboot servers | |
command: reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment