Skip to content

Instantly share code, notes, and snippets.

@icarrr
Created November 1, 2019 04:38
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 icarrr/a51090419005fa2505af6a87d512d4eb to your computer and use it in GitHub Desktop.
Save icarrr/a51090419005fa2505af6a87d512d4eb to your computer and use it in GitHub Desktop.
Search and Replace string using ansible
---
- hosts: localhost
tasks:
- name: Search and Replace string
shell: for i in /home/sibunglon/*yml; do sed -i 's/search/replace/g' "$i"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment