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 }}"
View Diff
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 303 remaining solutions by signing in and submitting your own entry
#304 Corentin Leriche / @LericheCorentin - Score: 47 - 01/03/23 @ 15:53
<Down><Down><Down><Down><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>i"<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>"<Esc>:wq!<CR>
0 comments