Skip to content

Commit

Permalink
use ansible.posix in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Apr 29, 2022
1 parent 7ff5132 commit cce95b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ collections:
# that collection is used during ansible-lint testing for validating our
# ability to import_playbook from a collection.
- name: community.molecule
# that collection is used during ansible-lint testing for validating our
# ability to detect non-core modules.
- name: ansible.posix
10 changes: 4 additions & 6 deletions src/ansiblelint/rules/only_builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ def matchtask(
FAIL_PLAY = """
- hosts: localhost
tasks:
- name: fake_namespace.fake_collection.fake_module
community.general.ini_file:
path: /etc/conf
section: drinks
option: fav
value: lemonade
- name: sysctl
ansible.posix.sysctl:
name: vm.swappiness
value: '5'
"""

@pytest.mark.parametrize(
Expand Down

0 comments on commit cce95b1

Please sign in to comment.