Skip to content
Snippets Groups Projects
Select Git revision
  • 7fa03355ae733293a31bba890b5cc5f949722a3f
  • master default protected
  • 4
  • 4.13
  • 4.13.0
  • 4.12.3
  • 4.12.2
  • 4.12.1
  • 4.12
  • 4.12.0
  • 4.11
  • 4.11.1
  • 4.11.0
  • 4.10
  • 4.10.0
  • 4.9
  • 4.9.1
  • 4.9.2
  • 4.9.0
19 results

bumpversion.sh

Blame
  • main.yml 862 B
    
    
    ---
    - hosts: servers_for_nginx
      gather_facts: no
      become: yes
      tasks:
        - name: Update repositories
          apt:
            update_cache: yes
    
        - name: Install nginx
          package:
            name: nginx
    
        - name: Start nginx
          service:
            name: nginx
            enabled: yes
            state: started
    
        - name: Set attributes
          set_stats:
            data:
              site_config_dir: /etc/nginx/conf.d
    
        - name: Install sample site
          copy:
            dest: "{{ item }}"
            content: |
              <!doctype html>
              <html lang="en">
              <head>
                <title>Hello World!</title>
              </head>
              <body>
                <h1>Sample web page</h1>
                <p>With little content ;)</p>
              </body>
              </html>
          with_items:
            - /var/www/html/index.html
            - /usr/share/nginx/html/index.html