freeipa / ansible-freeipa

Ansible roles and modules for FreeIPA
GNU General Public License v3.0
489 stars 232 forks source link

Correct the playbook in doc for revocation example #1132

Closed mrizwan93 closed 1 year ago

mrizwan93 commented 1 year ago

playbook mentioned at https://github.com/freeipa/ansible-freeipa/blob/master/README-cert.md

---
- name: Revoke certificate
  hosts: ipaserver

  tasks:
  - name Revoke a certificate
    ipacert:
      ipaadmin_password: SomeADMINpassword
      serial_number: 123456789
      state: revoked

It doesn't state the revocation reason. Also colon is missing in name directive of tasks Correct example playbook would be:

---
- name: Revoke certificate
  hosts: ipaserver

  tasks:
  - name: Revoke a certificate
    ipacert:
      ipaadmin_password: SomeADMINpassword
      serial_number: 123456789
      reason: 5
      state: revoked
rjeffman commented 1 year ago

@mrizwan93 thank you for the report!