Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.

Commit

Permalink
Ignore warning message in Deep Security Agent service check and add i…
Browse files Browse the repository at this point in the history
…ndent to correct sample yml in README.md
  • Loading branch information
harrisonchen201703 authored and DeepSecurityOpenSourceSupport committed Apr 30, 2018
1 parent ec44e13 commit 7a511e4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ A sample playbook:
```yaml
- hosts: all
roles:
-role: deep-security.deep-security-agent
action: deploy
dsm_agent_download_hostname: app.deepsecurity.trendmicro.com
dsm_agent_download_port: 443
dsm_agent_activation_hostname: agents.deepsecurity.trendmicro.com
dsm_agent_activation_port: 443
tenant_id: 111A111A-1A1A-11AA-AAA-11AA11111111
token | tenant_password: 111A111A-1A1A-11AA-AAA-11AA11111111
policy_id: 1
group_id: 1
force_reactivation: false
- role: deep-security.deep-security-agent
action: deploy
dsm_agent_download_hostname: app.deepsecurity.trendmicro.com
dsm_agent_download_port: 443
dsm_agent_activation_hostname: agents.deepsecurity.trendmicro.com
dsm_agent_activation_port: 443
tenant_id: 111A111A-1A1A-11AA-AAA-11AA11111111
token | tenant_password: 111A111A-1A1A-11AA-AAA-11AA11111111
policy_id: 1
group_id: 1
force_reactivation: false
```
Please refer to the following sections for required variables.
Expand Down
6 changes: 5 additions & 1 deletion tasks/install-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,12 @@
# *********************************************************************
# * Make sure the service is running
# *********************************************************************

# We ignore "[warnning]Consider using service module rather than running service" here because there's no proper service checking function in "Service" module
- name: Get service 'ds_agent' status
shell: "service ds_agent status"
args:
warn: false
register: result
become: true

Expand All @@ -137,4 +141,4 @@
when: (result.stdout | regex_search('(running)')) != "running"

- debug:
msg: "ds_agent package installed successfully"
msg: "ds_agent package installed successfully"

0 comments on commit 7a511e4

Please sign in to comment.