Commit 9642602b authored by Navid Sassan's avatar Navid Sassan
Browse files

updated examples

parent 2ddfedc3
......@@ -78,25 +78,36 @@ author:
'''
EXAMPLES = '''
- name: Generate a new password
- name: Create a new password, or get the existing item
keepass:
database: /path/to/password_database.kdbx
hostname: myHostname1
keyfile: /path/to/password_database.key
purpose: myPurpose1
username: myUsername1
database: /tmp/vault.kdbx
hostname: dbhost01.localdomain
keyfile: /tmp/vault.key
purpose: MariaDB
username: mariadb-admin
register: creds
- debug:
msg: "Username: {{ creds.username }}, Password: {{ creds.password }}, New password: {{ creds.changed }}"
- name: Generate a longer new password
- name: Create a longer new password, or get the existing item
keepass:
database: /path/to/password_database.kdbx
database: /tmp/vault.kdbx
hostname: "{{ inventory_hostname }}"
keyfile: /path/to/password_database.key
password_length: 33
purpose: myPurpose2
username: myUsername2
keyfile: /tmp/vault.key
password_length: 45
purpose: MariaDB
username: mariadb-admin
register: creds
- debug:
msg: "Username: {{ creds.username }}, Password: {{ creds.password }}, New password: {{ creds.changed }}"
- name: Create a new, host-independent password, or get the existing item
keepass:
database: /tmp/vault.kdbx
keyfile: /tmp/vault.key
password_length: 45
purpose: MariaDB
username: mariadb-admin
register: creds
- debug:
msg: "Username: {{ creds.username }}, Password: {{ creds.password }}, New password: {{ creds.changed }}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment