Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] meraki_admin - Enable check mode #54499

Open
wants to merge 2 commits into
base: devel
from

Conversation

Projects
None yet
2 participants
@kbreit
Copy link
Contributor

commented Mar 28, 2019

SUMMARY

Enables check mode support for meraki_admin module.

Related to bug #53597.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

meraki_admin

ADDITIONAL INFORMATION
  - name: Create administrator with tags with check mode
    meraki_admin:
      auth_key: '{{auth_key}}'
      state: present
      org_name: '{{test_org_name}}'
      name: John Doe
      email: '{{email_prefix}}+johndoe@{{email_domain}}'
      orgAccess: none
      tags:
        - { "tag": "production", "access": "read-only" }
        - tag: beta
          access: full
    delegate_to: localhost
    register: create_tags_check
    check_mode: yes

ok: [localhost] => {
    "create_tags_check": {
        "changed": false,
        "data": {
            "email": "meraki+johndoe@kevinbreit.net",
            "name": "John Doe",
            "orgAccess": "none",
            "tags": [
                {
                    "access": "read-only",
                    "tag": "production"
                },
                {
                    "access": "full",
                    "tag": "beta"
                }
            ]
        },
        "failed": false,
        "response": "OK (unknown bytes)",
        "status": 200
    }
}

@kbreit kbreit changed the title meraki_admin - Enable check mode [WIP] meraki_admin - Enable check mode Mar 28, 2019

@ansibot

This comment has been minimized.

Copy link
Contributor

commented Mar 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.