Skip to content

Commit

Permalink
Collections FQCN.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Feb 22, 2021
1 parent 581b905 commit d650d25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tasks/generate_ca_certs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
state_or_province_name: "{{ ca_state_or_province_name | default(omit) }}"

- name: generate root ca certificate
command:
ansible.builtin.command:
chdir: "{{ ca_root_path }}"
cmd: "openssl ca {{ ca_root_cert_params }}"
creates: "{{ ca_root_path }}/{{ ca_root_certificate_path }}"
Expand All @@ -39,7 +39,7 @@
state_or_province_name: "{{ ca_state_or_province_name | default(omit) }}"

- name: generate ca certificate
command:
ansible.builtin.command:
chdir: "{{ ca_root_path }}"
cmd: "openssl ca {{ ca_cert_params }}"
creates: "{{ ca_root_path }}/{{ ca_certificate_path }}"
Expand Down
6 changes: 3 additions & 3 deletions tasks/requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
mode: "0644"

- name: generate requested certificate
command:
ansible.builtin.command:
chdir: "{{ ca_path }}"
cmd: "openssl ca {{ ca_client_cert_params }}"
creates: "{{ ca_path }}/{{ ca_certs_path }}/{{ request.name | default(request) }}.crt"
Expand All @@ -68,14 +68,14 @@

- block:
- name: revoke certificate
command:
ansible.builtin.command:
chdir: "{{ ca_path }}"
cmd: "openssl ca {{ ca_client_cert_revoke_params }}"
register: revoke_result
ignore_errors: True

- name: update crl
command:
ansible.builtin.command:
chdir: "{{ ca_path }}"
cmd: "openssl ca {{ ca_crl_params }}"

Expand Down

0 comments on commit d650d25

Please sign in to comment.