summaryrefslogtreecommitdiff
path: root/examples/deploy-nginx.yaml
blob: d2c9c310fff6aa627110f40239a5c1cd1a7560b5 (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: Crear directorio web
    module: file
    args:
      path: "/var/www/html"
      state: present
      type: directory
      mode: "0755"
      become: true

  - name: Ejecutar contenedor nginx
    module: docker
    args:
      action: present
      name: nginx_web
      image: nginx:latest
      become: true

  - name: Habilitar servicio docker
    module: service
    args:
      name: docker
      state: enable
      become: true