Skip to content

Commit

Permalink
Merge pull request #10 from colinhoglund/master
Browse files Browse the repository at this point in the history
only report changed when nessus link fails, remove tests as filters deprecation warning
  • Loading branch information
davidpanofsky authored Jun 18, 2018
2 parents d9c66a4 + 6bd7c2d commit 2c9782f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
- name: Check agent link status
command: /opt/nessus_agent/sbin/nessuscli agent status
become: yes
ignore_errors: yes
register: nessus_link
ignore_errors: yes
changed_when: nessus_link.rc != 0

- name: Configure Nessus Agent
command: >
Expand All @@ -27,7 +28,7 @@
--port={{nessus_agent_port}}
--groups="{{nessus_agent_group}}"
become: yes
when: nessus_link|failed
when: nessus_link is failed
notify: restart nessusagent

- name: Ensure nessusagent is started
Expand Down

0 comments on commit 2c9782f

Please sign in to comment.