mirror of
https://github.com/geerlingguy/ansible-role-nginx.git
synced 2025-02-15 01:01:30 +01:00
18 lines
331 B
YAML
18 lines
331 B
YAML
---
|
|
- name: Update pkg cache.
|
|
command: pkg update -f
|
|
environment:
|
|
ASSUME_ALWAYS_YES: "yes"
|
|
tags: ['skip_ansible_lint']
|
|
|
|
- name: Ensure nginx is installed.
|
|
pkgng:
|
|
name: "{{ nginx_package_name }}"
|
|
state: present
|
|
|
|
- name: Create logs directory.
|
|
file:
|
|
path: /var/log/nginx
|
|
state: directory
|
|
mode: 0755
|