mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 19:34:45 +00:00
ipacert: Fix revocation example playbook on README
The revocation example playbook on README was wrong as it didn't have a 'reason' set, and the parameter must be used with 'state: revoked'. This patch fixes the example and adds a new example using a reason mnemonic instead of a reason number.
This commit is contained in:
@@ -77,6 +77,23 @@ Example playbook to revoke an existing certificate:
|
|||||||
ipacert:
|
ipacert:
|
||||||
ipaadmin_password: SomeADMINpassword
|
ipaadmin_password: SomeADMINpassword
|
||||||
serial_number: 123456789
|
serial_number: 123456789
|
||||||
|
reason: 5
|
||||||
|
state: revoked
|
||||||
|
```
|
||||||
|
|
||||||
|
When revoking a certificate a mnemonic can also be used to set the revocation reason:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
- name: Revoke certificate
|
||||||
|
hosts: ipaserver
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name Revoke a certificate
|
||||||
|
ipacert:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
|
serial_number: 123456789
|
||||||
|
reason: cessationOfOperation
|
||||||
state: revoked
|
state: revoked
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user