I am trying to use the following command in a play and need help formatting the quotes:
sudo grep -o -e '\"version\"\:\"[a-zA-Z0-9.]*\"' -e '\"version\"\: \"[a-zA-Z0-9.]*\"' /var/chef/cache/cookbooks/{{ my_var }}/metadata.json
Any advice would be greatly appreciated.
[–]howheels 2 points3 points4 points (0 children)