From 533e79ba959143f0459431a486bfb85c56c72ddc Mon Sep 17 00:00:00 2001 From: luisgulo Date: Fri, 24 Oct 2025 18:01:10 +0200 Subject: Releasing code version 1.8.0 --- examples/clone-and-configure.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 examples/clone-and-configure.yaml (limited to 'examples/clone-and-configure.yaml') 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 -- cgit v1.2.3