kwoodson / ansible-role-yedit

Ansible Role for Yaml editing
164 stars 62 forks source link

how to use seprator #71

Closed thatsk closed 5 years ago

thatsk commented 5 years ago

Desire file should be like this:- war-1.0-dev : 1.15.0-2019061723.23313320

but it showing war-1 0-dev: 1.15.0-2019061723.23313320

tdmalone commented 5 years ago

separator is set to . by default, so it's splitting at the . halfway through your key. Try setting it to something like # (or another value that you know won't ever exist in your keys).

eg.

yedit:
  src: '/tmp/versions.yaml'
  separator: "#"
thatsk commented 5 years ago

thank you so much @tdmalone