blob: 5de2669cfbbfa8e2857ee0e4fa7131dc0e6c18d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|