Add quotes to ansible playbook
You created an ansible playbook, but forgot to add quotes. Can you fix it?
Start file
---
- hosts: all
vars:
ssh_state: True
tasks:
- name: Manage openssh
package:
name: openssh
state: {{ ssh_state }}
End file
---
- hosts: all
vars:
ssh_state: True
tasks:
- name: Manage openssh
package:
name: openssh
state: "{{ ssh_state }}"
9c9
< state: {{ ssh_state }}
---
> state: "{{ ssh_state }}"
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock
130 remaining solutions by
signing in and submitting your own entry
#131
gchain / @gchain7 -
Score: 32 -
08/21/20 @ 17:48
:%s/\v(.*)(\{\{.*\}\})/\1"\2"<CR>ZZ
0 comments
131 active golfers, 341 entries
Leaderboard (lowest score wins):
07/17/2020 at 09:41PM
07/18/2020 at 01:58AM
07/19/2020 at 05:45PM
07/20/2020 at 03:10AM
07/21/2020 at 09:08AM
07/25/2020 at 06:57AM
07/25/2020 at 09:26AM
07/26/2020 at 06:49PM
07/27/2020 at 07:20AM
#10 - Gergely Risko / @errge
07/28/2020 at 10:07PM
08/01/2020 at 06:07AM
08/02/2020 at 10:18AM
08/02/2020 at 05:39PM
08/03/2020 at 04:22PM
08/08/2020 at 06:08PM
08/09/2020 at 02:32PM
08/10/2020 at 10:55PM
08/13/2020 at 12:52PM
08/21/2020 at 01:22AM
08/26/2020 at 09:53PM
09/04/2020 at 12:25AM
09/05/2020 at 02:00PM
09/05/2020 at 04:04PM
09/23/2020 at 09:51PM
10/09/2020 at 09:34AM
10/19/2020 at 06:08PM
#27 - David Kutschke / @D4KU_
11/17/2020 at 09:34PM
11/23/2020 at 11:18AM
12/27/2020 at 02:42PM
01/04/2021 at 03:26PM