Refactored syntax highlighting shortcodes into markdown
This commit is contained in:
parent
9e6bb1a3e5
commit
ea435049b3
71 changed files with 297 additions and 297 deletions
|
@ -9,31 +9,31 @@ tags:
|
|||
## Editing a protected file
|
||||
|
||||
Here is how to edit a vault protected file :
|
||||
{{< highlight sh >}}
|
||||
```sh
|
||||
ansible-vault edit hostvars/blah.yml
|
||||
{{< / highlight >}}
|
||||
```
|
||||
|
||||
## Using a vault entry in a task or a jinja template
|
||||
|
||||
It is as simple as using any variable :
|
||||
{{< highlight yaml >}}
|
||||
```yaml
|
||||
- copy:
|
||||
path: /etc/ssl/private.key
|
||||
mode: 0400
|
||||
content: '{{ ssl_key }}'
|
||||
{{< / highlight >}}
|
||||
```
|
||||
|
||||
## How to specify multiple lines entries
|
||||
|
||||
This is actually a yaml question, not a vault one but since I ask myself this frequently in this context here is how to put a multiple lines entry like a private key in vault (for a simple value, just don't use a `|`):
|
||||
|
||||
{{< highlight yaml >}}
|
||||
```yaml
|
||||
ssl_key : |
|
||||
----- BEGIN PRIVATE KEY -----
|
||||
blahblahblah
|
||||
blahblahblah
|
||||
----- END PRIVATE KEY -----
|
||||
{{< /highlight >}}
|
||||
```
|
||||
|
||||
## How to run playbooks when vault values are needed
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue