main.yml 566 B

12345678910111213141516
  1. ---
  2. - include: nginx-official-repo.yml
  3. when: nginx_official_repo == True
  4. - include: installation.packages.yml
  5. when: nginx_installation_type == "packages"
  6. - include: remove-defaults.yml
  7. when: not keep_only_specified
  8. - include: remove-extras.yml
  9. when: keep_only_specified
  10. - include: remove-unwanted.yml
  11. - include: configuration.yml
  12. - name: Start the nginx service
  13. service: name={{ nginx_service_name }} state=started enabled=yes
  14. when: nginx_installation_type in nginx_installation_types_using_service and nginx_daemon_mode == "on"
  15. tags: [service,nginx]