-
Notifications
You must be signed in to change notification settings - Fork 1
/
RHEL7x_Apply-Ansible-Updates-playbook.yml
39 lines (28 loc) · 1.59 KB
/
RHEL7x_Apply-Ansible-Updates-playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
################################################################################
# description: Apply updates to the installed Ansible kit on RHEL7x
# usage: ansible-playbook RHEL7x_Apply-Ansible-Updates-playbook.yml --extra-vars 'HostOrGroup=YourServerOrGroupNameGoesHere'
# author: Ernest G. Wilson II <ErnestGWilsonII@gmail.com> (https://github.com/ernestgwilsonii)
# license: MIT
################################################################################
# Ansible Playbook options
# REF: http://docs.ansible.com/ansible/playbooks.html
#####################################################
- name: Apply updates to the installed Ansible kit on RHEL7x
hosts: "{{ HostOrGroup|default ('FATAL ERROR --> HostOrGroup NOT SET! You must specify either a Host or a Group name!') }}"
serial: "100%"
gather_facts: False
tasks:
# Execute command(s)
# REF: http://docs.ansible.com/ansible/command_module.html
##########################################################
- name: Use pip to update and ensure pip is at the latest version
command: /usr/bin/pip install --upgrade pip
- name: Use pip to update and ensure pywinrm is at the latest version
command: /usr/bin/pip install --upgrade pywinrm
- name: Use pip to update and ensure ansible is at the latest version
command: /usr/bin/pip install --upgrade ansible
- name: Use pip to update and ensure clc-sdk is at the latest version
command: /usr/bin/pip install --upgrade clc-sdk
- name: Use pip to update and ensure clc-ansible-module is at the latest version
command: /usr/bin/pip install --upgrade clc-ansible-module