---
# nginx role — 任務主入口
# 由 nginx-sync.yml playbook 呼叫

- name: "確認 nginx 已安裝"
  ansible.builtin.package:
    name: nginx
    state: present
  tags: nginx

- name: "確認 nginx 服務啟動且自動啟動"
  ansible.builtin.systemd:
    name: nginx
    state: started
    enabled: true
  tags: nginx
