task 1-4
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user