Skip to content

Commit

Permalink
Adding scan interval and splay
Browse files Browse the repository at this point in the history
  • Loading branch information
schnipschnap committed Mar 5, 2024
1 parent f3e964a commit c7462a3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/linux_login.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
login_cmd: "{{ login_cmd + ' --annotation ' + annotations }}"
when: annotations | length > 0

- name: Add scan interval to cnspec login command
ansible.builtin.set_fact:
login_cmd: "{{ login_cmd + ' --timer ' + timer }}"
when: timer | length > 0

- name: Add splay to cnspec login command
ansible.builtin.set_fact:
login_cmd: "{{ login_cmd + ' --splay ' + splay }}"
when: splay | length > 0

- name: Login cnquery and cnspec with Mondoo platform
ansible.builtin.command:
cmd: "{{ login_cmd }}"
Expand Down
10 changes: 10 additions & 0 deletions tasks/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@
login_cmd: "{{ login_cmd + ' --annotation ' + annotations }}"
when: annotations | length > 0

- name: Add scan interval to cnspec login command
ansible.builtin.set_fact:
login_cmd: "{{ login_cmd + ' --timer ' + timer }}"
when: timer | length > 0

- name: Add splay to cnspec login command
ansible.builtin.set_fact:
login_cmd: "{{ login_cmd + ' --splay ' + splay }}"
when: splay | length > 0

- name: Login cnquery and cnspec
ansible.windows.win_command: "{{ login_cmd }}"
args:
Expand Down

0 comments on commit c7462a3

Please sign in to comment.