summaryrefslogtreecommitdiff
path: root/examples/replace-string.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/replace-string.yaml')
-rw-r--r--examples/replace-string.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/replace-string.yaml b/examples/replace-string.yaml
new file mode 100644
index 0000000..97f8c9e
--- /dev/null
+++ b/examples/replace-string.yaml
@@ -0,0 +1,8 @@
+- name: Reemplazar puerto en archivo de configuración
+ module: replace
+ args:
+ path: /etc/nginx/sites-available/default
+ regexp: 'listen\s+80'
+ replace: 'listen 8080'
+ backup: true
+ become: true