-
Notifications
You must be signed in to change notification settings - Fork 1
/
RHEL7x_Install-Basic-Utilities-playbook.yml
131 lines (103 loc) · 2.89 KB
/
RHEL7x_Install-Basic-Utilities-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
---
################################################################################
# description: Installs some basic / handy utilities on RHEL7x
# usage: ansible-playbook RHEL7x_Install-Basic-Utilities-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: Install some basic / handy utilities 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:
# Install yum packages (listed in alphabetical order)
# REF: http://docs.ansible.com/ansible/yum_module.html
######################################################
- name: Install expect
yum:
name=expect
state=latest
- name: Install expect-devel
yum:
name=expect-devel
state=latest
- name: Install git
yum:
name=git
state=latest
- name: Install htop
yum:
name=htop
state=latest
- name: Install jq
yum:
name=jq
state=latest
- name: Install mc
yum:
name=mc
state=latest
- name: Install mtr
yum:
name=mtr
state=latest
- name: Install oniguruma
yum:
name=oniguruma
state=latest
- name: Install openvpn
yum:
name=openvpn
state=latest
- name: Install net-snmp-utils
yum:
name=net-snmp-utils
state=latest
- name: Install tcpdump
yum:
name=tcpdump
state=latest
- name: Install telnet
yum:
name=telnet
state=latest
- name: Install traceroute
yum:
name=traceroute
state=latest
- name: Install wget
yum:
name=wget
state=latest
- name: Install wireshark
yum:
name=wireshark
state=latest
- name: Install xauth for X11
yum:
name=xauth
state=latest
- name: Install xclock so the most basic X11 requirements get installed
yum:
name=xclock
state=latest
- name: Install xhost for X11
yum:
name=xhost
state=latest
# Update various configuration files
# REF: http://docs.ansible.com/ansible/lineinfile_module.html
#############################################################
- name: Set OpenVPN Client NSS_HASH_ALG_SUPPORT environment variable for root on next login
lineinfile:
dest=/root/.bashrc
state=present
line='export NSS_HASH_ALG_SUPPORT=+MD5'
- name: Set OpenVPN Client OPENSSL_ENABLE_MD5_VERIFY environment variable for root on next login
lineinfile:
dest=/root/.bashrc
state=present
line='export OPENSSL_ENABLE_MD5_VERIFY=1'