Skip to content

Commit

Permalink
support multiple CA
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Jourdan committed Feb 22, 2024
1 parent a63795b commit 9d5ceae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---

- name: Initiate PKI
command: easyrsa --batch init-pki
command: easyrsa --pki-dir={{ easyrsa_pki_dir }} init-pki
args:
creates: "{{ easyrsa_pki_dir }}/private"
when: not easyrsa_replace_pki | bool

- name: Replace PKI
command: easyrsa init-pki
command: easyrsa --pki-dir={{ easyrsa_pki_dir }} init-pki
when: easyrsa_replace_pki | bool
changed_when: true

Expand All @@ -18,7 +18,7 @@
mode: 0o755

- name: Create CA
command: easyrsa build-ca nopass
command: easyrsa --pki-dir={{ easyrsa_pki_dir }} build-ca nopass
register: _result
failed_when:
- _result is failed
Expand Down
2 changes: 1 addition & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
copy:
content: |
#!/usr/bin/env bash
/usr/local/lib/easyrsa/easyrsa --batch --pki-dir={{ easyrsa_pki_dir }} "$@"
/usr/local/lib/easyrsa/easyrsa --batch "$@"
dest: /usr/local/bin/easyrsa
mode: 0o755
owner: root
Expand Down

0 comments on commit 9d5ceae

Please sign in to comment.