summaryrefslogtreecommitdiff
path: root/examples/clone-and-configure.yaml
diff options
context:
space:
mode:
authorluisgulo <luisgulo@gmail.com>2025-10-24 18:01:10 +0200
committerluisgulo <luisgulo@gmail.com>2025-10-24 18:01:10 +0200
commit533e79ba959143f0459431a486bfb85c56c72ddc (patch)
tree91974de1bbbdc4c51c76ed591fc5c6e02a3342b6 /examples/clone-and-configure.yaml
parent45019c81cfd0fc1d18dce18cdfd5f127c6d61073 (diff)
Releasing code version 1.8.0
Diffstat (limited to 'examples/clone-and-configure.yaml')
-rw-r--r--examples/clone-and-configure.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/clone-and-configure.yaml b/examples/clone-and-configure.yaml
new file mode 100644
index 0000000..5de2669
--- /dev/null
+++ b/examples/clone-and-configure.yaml
@@ -0,0 +1,24 @@
+tasks:
+ - name: Clonar repo de configuración
+ module: git
+ args:
+ action: clone
+ repo: "https://github.com/luisgulo/configs.git"
+ dest: "/opt/configs"
+ become: true
+
+ - name: Copiar archivo de configuración
+ module: git
+ args:
+ action: fetch-file
+ repo: "https://github.com/luisgulo/configs.git"
+ branch: "main"
+ file_path: "nginx/nginx.conf"
+ dest: "/etc/nginx/nginx.conf"
+ become: true
+
+ - name: Reiniciar nginx
+ module: run
+ args:
+ command: "systemctl restart nginx"
+ become: true