@@ -52,7 +52,7 @@ ok: [localhost] => {
52
52
``` yaml
53
53
# Get username for Google
54
54
- debug :
55
- msg : {{ lookup('bitwarden', 'Google', field='username' }}
55
+ msg : {{ lookup('bitwarden', 'Google', field='username') }}
56
56
` ` `
57
57
58
58
The above might result in:
@@ -69,7 +69,7 @@ ok: [localhost] => {
69
69
``` yaml
70
70
# Get all available fields for an entry
71
71
- debug :
72
- msg : {{ lookup('bitwarden', 'Google', field='item' }}
72
+ msg : {{ lookup('bitwarden', 'Google', field='item') }}
73
73
` ` `
74
74
75
75
The above might result in:
@@ -109,7 +109,7 @@ ok: [localhost] => {
109
109
``` yaml
110
110
# Get the value of a custom field
111
111
- debug :
112
- msg : {{ lookup('bitwarden', 'Google', field='mycustomfield', custom_field=true }}
112
+ msg : {{ lookup('bitwarden', 'Google', field='mycustomfield', custom_field=true) }}
113
113
` ` `
114
114
115
115
The above might result in:
@@ -120,3 +120,21 @@ ok: [localhost] => {
120
120
" msg " : " the value of my custom field"
121
121
}
122
122
```
123
+
124
+ ### download attachments files
125
+
126
+ ``` yaml
127
+ # Get the value of a custom field
128
+ - debug :
129
+ msg : {{ lookup('bitwarden', 'privateKey.pem', itemid='123456-1234-1234-abbf-60c345aaa3e', attachments=true ) }}
130
+ ` ` `
131
+ Optional parameters - output='/ansible/publicKey.pem'
132
+
133
+ The above might result in:
134
+
135
+ ` ` `
136
+ TASK [debug] *********************************************************
137
+ ok : [localhost] => {
138
+ " msg " : " Saved /publicKey.pem"
139
+ }
140
+ ```
0 commit comments