Skip to content

Instantly share code, notes, and snippets.

@deviousway
Created October 8, 2021 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deviousway/852a01062b244206744a2c8edd1babad to your computer and use it in GitHub Desktop.
Save deviousway/852a01062b244206744a2c8edd1babad to your computer and use it in GitHub Desktop.
Ansible remove dot from variable with version
php_version: 7.4
php_version_redhat: "{{ php_version | regex_replace ('[.~]', '') }}"
###Will return
###"msg": 74
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment