--- # Nginx Proxy Role - Main Tasks - name: Include OS-specific variables include_vars: "{{ ansible_os_family }}.yml" tags: - nginx - config - name: Install Nginx and prerequisites include_tasks: install-nginx.yml tags: - nginx - install - name: Configure Nginx include_tasks: configure-nginx.yml tags: - nginx - config - name: Setup SSL certificates include_tasks: ssl-setup.yml tags: - nginx - ssl - name: Configure security headers and hardening include_tasks: security-config.yml tags: - nginx - security - name: Setup virtual hosts include_tasks: vhosts-config.yml tags: - nginx - vhosts - name: Configure rate limiting include_tasks: rate-limiting.yml when: rate_limiting_enabled | bool tags: - nginx - security - rate-limit - name: Setup monitoring and status include_tasks: monitoring.yml when: nginx_status_enabled | bool tags: - nginx - monitoring - name: Configure log rotation include_tasks: log-rotation.yml tags: - nginx - logging - name: Validate configuration and start services include_tasks: validation.yml tags: - nginx - validation