--- - name: Ensure nginx is installed. pacman: name: "{{ nginx_package_name }}" state: present - name: ensure conf.d exist file: path: "{{ nginx_conf_path }}" state: directory notify: reload nginx