Skip to content
Snippets Groups Projects
Select Git revision
  • ff593670bd4b49c5c939a695b93fb5693d8e4ed3
  • master default
  • v1
  • btrfs-backup
4 results

shore_co_il.conf

Blame
    • nimrod's avatar
      ff593670
      Router role. · ff593670
      nimrod authored
      And playbook. Provision the ns1 host that's also the homelab router.
      ff593670
      History
      Router role.
      nimrod authored
      And playbook. Provision the ns1 host that's also the homelab router.
    renew-certs.yaml 2.76 KiB
    ---
    - name: Generate keys and certificates
      hosts:
        - localhost
      gather_facts: false
      handlers:
        - name: Restart Nginx on host01
          delegate_to: host01
          command: docker restart web-proxy_proxy_1
    
        - name: Restart Nginx on ns4
          delegate_to: ns4
          command: docker restart web-proxy_proxy_1
    
        - name: Restart Nginx on kodi
          delegate_to: kodi
          command: docker restart web-proxy_proxy_1
    
        - name: Reload Exim
          delegate_to: host01
          command: docker kill --signal SIGHUP mail_smtp_1
    
        - name: Reload Dovecot
          delegate_to: host01
          command: docker kill --signal SIGHUP mail_imap_1
    
      tasks:
        - name: Issue certificate for ns4
          include_tasks:
            apply:
              tags:
                - ns4
            file: '{{ playbook_dir }}/tasks/renew-cert.yaml'
          vars:
            domains:
              - autoconfig.nehe.sr
              - autoconfig.shore.co.il
              - elasticsearch.shore.co.il
              - kibana.shore.co.il
              - myip.shore.co.il
              - nehe.sr
              - ns4.shore.co.il
              - registry.shore.co.il
              - shore.co.il
              - www.nehe.sr
              - www.shore.co.il
            handlers:
              - Restart Nginx on ns4
            host: ns4
          tags:
            - always
    
        - name: Issue certificate for host01
          include_tasks:
            apply:
              tags:
                - host01
            file: '{{ playbook_dir }}/tasks/renew-cert.yaml'
          vars:
            domains:
              - auth.shore.co.il
              - code.shore.co.il
              - git.shore.co.il
              - lam.shore.co.il
              - nextcloud.shore.co.il
              - ns1.shore.co.il
              - notify.shore.co.il
              - sogo.shore.co.il
              - vouch.shore.co.il
              - zpush.shore.co.il
            handlers:
              - Restart Nginx on host01
            host: host01
          tags:
            - always
    
        - name: Issue certificate for kodi
          include_tasks:
            apply:
              tags:
                - kodi
            file: '{{ playbook_dir }}/tasks/renew-cert.yaml'
          vars:
            domains:
              - jellyfin.shore.co.il
              - kodi.shore.co.il
              - library.shore.co.il
              - transmission.shore.co.il
            handlers:
              - Restart Nginx on kodi
            host: kodi
          tags:
            - dhparams
            - kodi
    
        - name: Issue certificate for smtp
          include_tasks:
            apply:
              tags:
                - smtp
            file: '{{ playbook_dir }}/tasks/renew-cert.yaml'
          vars:
            delegate_host: host01
            domains:
              - imap.shore.co.il
              - mta-sts.nehe.sr
              - mta-sts.shore.co.il
              - smtp.shore.co.il
            filename: mail
            handlers:
              - Reload Dovecot
              - Reload Exim
              - Restart Nginx on host01
            host: mail
          tags:
            - always