Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not try to install providers for old clients
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
imilchev committed Nov 7, 2023
1 parent 3317416 commit 636ad1a
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -169,7 +169,7 @@ For testing, this role uses molecule. You can install the dependencies via:
```bash
pip install molecule
pip install docker
pip install 'molecule[docker]'
pip install 'molecule-plugins[docker]'
```

The `molecule` cli covers the test lifecycle:
6 changes: 5 additions & 1 deletion tasks/linux_login.yml
Original file line number Diff line number Diff line change
@@ -3,10 +3,14 @@

---

- name: Get current cnspec version
ansible.builtin.command: cnspec version
register: cnspec_version

- name: Ensure we have the latest os provider installed
ansible.builtin.command: cnspec providers install os
become: "{{ use_become }}"
when: not ansible_check_mode
when: not ansible_check_mode and cnspec_version.stdout is match(".*cnspec 9.*")

- name: Create mondoo config directory
ansible.builtin.file:

0 comments on commit 636ad1a

Please sign in to comment.