Commit 9810212
committed
Fix idempotency of intermediate certificates
Prior to this change running the vault_pki role multiple times when generating
an intermediate certificate could result in the following error:
TASK [vault_pki : Set Intermediate as signed] **********************************
fatal: [localhost]: FAILED! =>
msg: |-
The task includes an option with an undefined variable. The error was:
'dict object' has no attribute 'data'
The error appears to be in 'roles/vault_pki/tasks/intermediate.yml': line
45, column 7, but may be elsewhere in the file depending on the exact
syntax problem.
The offending line appears to be:
- name: "Set Intermediate as signed"
^ here
This change adds the same condition used in other tasks.1 parent 131714f commit 9810212
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| 83 | + | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
0 commit comments