From ec3dd9eff3f298efd71f3fdc8154749d36981d93 Mon Sep 17 00:00:00 2001 From: kaushiki069 Date: Mon, 28 Apr 2025 14:28:11 +0530 Subject: [PATCH] doc updated --- plugins/modules/token.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/modules/token.py b/plugins/modules/token.py index ee8ec113..065e1945 100644 --- a/plugins/modules/token.py +++ b/plugins/modules/token.py @@ -68,25 +68,25 @@ EXAMPLES = """ - block: - name: Create a new token using an existing token - ansible.platform.aap_token: + ansible.platform.token: description: '{{ token_description }}' scope: "write" state: present aap_token: "{{ my_existing_token }}" - name: Delete this token - ansible.platform.aap_token: + ansible.platform.token: existing_token: "{{ aap_token }}" state: absent - name: Create a new token using username/password - ansible.platform.aap_token: + ansible.platform.token: description: '{{ token_description }}' scope: "write" state: present - aap_gateway: "{{ aap_gateway }}" - aap_username: "{{ my_username }}" - aap_password: "{{ my_password }}" + gateway_hostname: "{{ aap_gateway }}" + gateway_username: "{{ my_username }}" + gateway_password: "{{ my_password }}" - name: Use our new token to make another call namespace: @@ -94,13 +94,13 @@ always: - name: Delete our Token with the token we created - ansible.platform.aap_token: + ansible.platform.token: existing_token: "{{ aap_token }}" state: absent when: token is defined - name: Delete a token by its id - ansible.platform.aap_token: + ansible.platform.token: existing_token_id: 4 state: absent ...