---
# System prepended metadata

title: Untitled

---

 Configuration of the commshub sim load balanced in the nginx http server
```
  - name:  Nginx installation
    become: true
    block:
    - name: ensure nginx is at the latest version
      apt: 
        name: nginx
        state: latest
    - name: Create folders
      file:
         path: "/etc/nginx/{{ item }}"
         state: directory
      loop:
         - sites-available
         - sites-enabled
    - template:
        src: "{{ item }}"
        dest: /etc/nginx/sites-available/
      loop:
         - templates/default
         - templates/www.pneumogen.net.conf
         
        
        
    - name: copy Directories
        become: true
        template:
          src: "{{ item }}"
          dest: "/etc/nginx/{{ item }}"
          remote_src: yes  
        loop:
          - templates/sites-available
          - templates/sites-enabled
      #     # owner: "{{USERID}}"
      #     # group: "{{GROUPID}}"
      #     mode: 0640
      #   with_fileglob:
      #     - "{{NSTALL_PATH}}/*"

      # - name: start nginx
      #   service:
      #     name: nginx
      #     state: started
      #   become: yes
      ```