mirror of
https://github.com/geerlingguy/ansible-role-nginx.git
synced 2025-02-19 01:41:32 +01:00
14 lines
240 B
YAML
14 lines
240 B
YAML
---
|
|
- name: Update pkg cache.
|
|
shell: pkg update -f
|
|
|
|
- name: Ensure nginx is installed.
|
|
pkgng:
|
|
name: "{{ nginx_package_name }}"
|
|
state: present
|
|
|
|
- name: Create logs directory.
|
|
file:
|
|
path: /var/log/nginx
|
|
state: directory
|