Skip to content

Commit b4d0ff1

Browse files
authored
Add amazon linux (#148)
* groups/group and removed append * added Amazon Linux packages
1 parent 3119b1a commit b4d0ff1

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

roles/splunk/tasks/install_splunk.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
- name: Add nix splunk user
1313
user:
1414
name: "{{ splunk_nix_user }}"
15-
groups: "{{ splunk_nix_group }}"
15+
group: "{{ splunk_nix_group }}"
1616
home: "{{ splunk_home }}"
17-
append: true
1817
state: present
1918
shell: /bin/bash
2019
local: "{{ local_os_user }}"

roles/splunk/tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
- name: include distribution vars
33
include_vars: "{{ item }}"
44
with_first_found:
5+
- "{{ ansible_distribution }}{{ ansible_distribution_version }}.yml"
6+
- "{{ ansible_distribution }}.yml"
57
- "{{ ansible_os_family }}{{ ansible_distribution_major_version }}.yml"
68
- "{{ ansible_os_family }}.yml"
79

roles/splunk/vars/Amazon2.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
global_bashrc: /etc/bashrc
2+
chk_config_cmd: chkconfig --add disable-thp
3+
linux_packages:
4+
- sysstat
5+
- telnet
6+
- tcpdump
7+
- htop
8+
- lsof
9+
- policycoreutils-python
10+
- policycoreutils
11+
- gdb
12+
- bind-utils

0 commit comments

Comments
 (0)