File tree Expand file tree Collapse file tree 4 files changed +19
-4
lines changed
Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ - name : check auditd status
3+ command : service auditd status
4+ register : auditd_status
5+ ignore_errors : true
6+ changed_when : false
7+
8+ - name : Stop service auditd
9+ command : service auditd stop
10+ when : auditd_status.rc == 0
11+
12+ - name : Disable service auditd
13+ command : systemctl disable auditd
14+ when : auditd_status.rc == 0
Original file line number Diff line number Diff line change 66 include : pkg_url.yml
77 when : threatstack_pkg_url is undefined
88
9+ - name : Disable auditd service
10+ include : disable_auditd.yml
11+ when : ansible_distribution == 'Amazon'
12+
913- name : Run Apt configure and install Threat Stack
1014 include : apt_install.yml
1115 when : ansible_os_family == 'Debian'
Original file line number Diff line number Diff line change 2727 set_fact :
2828 config_checksum : " {{ config_string | checksum }}"
2929
30- - debug :
31- msg : " {{ threatstack_agent_config_args }}"
32-
3330- name : Create file to track checksum of config string
3431 copy :
3532 content : " {{ config_checksum }}"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name=Threat Stack Package Repository
33{% if ansible_distribution == 'Amazon' %}
44{% if threatstack_v 1 %}
55baseurl={{threatstack_pkg_url}}/Amazon
6- {% elif ansible_distribution_version == '2' %}
6+ {% elif ansible_distribution_version == '2' or ansible_kernel is search ( "\.amzn2\." ) %}
77baseurl={{threatstack_pkg_url}}/Amazon/2
88{% else %}
99baseurl={{threatstack_pkg_url}}/Amazon/1
You can’t perform that action at this time.
0 commit comments