Skip to content

Commit a94835a

Browse files
author
P4T12ICK
committed
improvements
1 parent bc7800a commit a94835a

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22

3-
ludus_ar_linux_splunk_uf_url: https://download.splunk.com/products/universalforwarder/releases/9.3.0/linux/splunkforwarder-9.3.0-51ccf43db5bd-linux-2.6-amd64.deb
3+
ludus_ar_linux_splunk_uf_url: https://download.splunk.com/products/universalforwarder/releases/9.4.7/linux/splunkforwarder-9.4.7-2a9293b80994-linux-amd64.deb
44
ludus_ar_linux_splunk_password: changeme123!
55
ludus_ar_linux_splunk_ip: "10.2.20.1"

molecule/default/converge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
roles:
55
- role: ../../..
66
vars:
7-
ludus_ar_linux_splunk_uf_url: https://download.splunk.com/products/universalforwarder/releases/9.3.0/linux/splunkforwarder-9.3.0-51ccf43db5bd-linux-2.6-amd64.deb
7+
ludus_ar_linux_splunk_uf_url: https://download.splunk.com/products/universalforwarder/releases/9.4.7/linux/splunkforwarder-9.4.7-2a9293b80994-linux-amd64.deb
88
ludus_ar_linux_splunk_password: changeme123!
99
ludus_ar_linux_splunk_ip: "10.2.20.1"
1010
ignore_errors: yes

tasks/install_auditd.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
update_cache: yes
1010
become: yes
1111

12+
- name: Check if running in Docker
13+
stat:
14+
path: /.dockerenv
15+
register: dockerenv_check
16+
become: no
17+
1218
- name: Reboot the server
1319
reboot:
1420
msg: "Rebooting server after installing auditd"
@@ -18,6 +24,7 @@
1824
post_reboot_delay: 30
1925
test_command: uptime
2026
become: yes
27+
when: not dockerenv_check.stat.exists | default(false)
2128

2229
- name: Download audit rules
2330
get_url:

tasks/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
- include_tasks: install_auditd.yml
77
- include_tasks: install_art.yml
88

9+
- name: Check if running in Docker
10+
stat:
11+
path: /.dockerenv
12+
register: dockerenv_check
13+
become: no
14+
915
- name: Reboot the server
1016
reboot:
1117
msg: "Rebooting server after ansible provisioning"
@@ -14,4 +20,5 @@
1420
pre_reboot_delay: 0
1521
post_reboot_delay: 30
1622
test_command: uptime
17-
become: yes
23+
become: yes
24+
when: not dockerenv_check.stat.exists | default(false)

0 commit comments

Comments
 (0)