Skip to content

Commit

Permalink
only report changed when link fails, remove tests as filters deprecat…
Browse files Browse the repository at this point in the history
…ion warning
  • Loading branch information
colinhoglund committed Jun 1, 2018
1 parent d9c66a4 commit 6bd7c2d
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 6bd7c2d

Please sign in to comment.