Skip to content

Rewrite ArgsRule to use output of ansible-doc for validating arguments #3831

Open
@ssbarnea

Description

@ssbarnea

Current implementation of ArgsRule does run ansible modules with partial mocking and that causes lots of issues.

It should be seen safer to switch to use of output of ansible-doc for validating arguments.

Example of task that produces an ignored runtime exception

- name: Example
  hosts: localhost
  tasks:
    - name: Wait for DNS entries to propagate
      community.aws.route53_wait:
        results: "{{ acme_certificate_INTERNAL_route53_result }}"
        aws_access_key: "{{ acme_certificate_aws_access_key | default(omit) }}"
        aws_secret_key: "{{ acme_certificate_aws_secret_key | default(omit) }}"

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Roadmap

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions