Skip to content

Commit

Permalink
Promote win_credential from community
Browse files Browse the repository at this point in the history
Updating documentation
Validating tests on windows server 2019, 2022, 2025.
  • Loading branch information
Yaish25491 authored and jborean93 committed Jan 7, 2025
1 parent d77dc63 commit 546c06b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions plugins/modules/win_credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Used to create and remove Windows Credentials in the Credential Manager.
- This module can manage both standard username/password credentials as well as
certificate credentials.
version_added: 2.7.0
options:
alias:
description:
Expand Down Expand Up @@ -150,21 +151,21 @@

EXAMPLES = r'''
- name: Create a local only credential
community.windows.win_credential:
ansible.windows.win_credential:
name: server.domain.com
type: domain_password
username: DOMAIN\username
secret: Password01
state: present
- name: Remove a credential
community.windows.win_credential:
ansible.windows.win_credential:
name: server.domain.com
type: domain_password
state: absent
- name: Create a credential with full values
community.windows.win_credential:
ansible.windows.win_credential:
name: server.domain.com
type: domain_password
alias: server
Expand All @@ -180,22 +181,22 @@
data_format: base64
- name: Create a certificate credential
community.windows.win_credential:
ansible.windows.win_credential:
name: '*.domain.com'
type: domain_certificate
username: 0074CC4F200D27DC3877C24A92BA8EA21E6C7AF4
state: present
- name: Create a generic credential
community.windows.win_credential:
ansible.windows.win_credential:
name: smbhost
type: generic_password
username: smbuser
secret: smbuser
state: present
- name: Remove a generic credential
community.windows.win_credential:
ansible.windows.win_credential:
name: smbhost
type: generic_password
state: absent
Expand Down

0 comments on commit 546c06b

Please sign in to comment.