summaryrefslogtreecommitdiff
path: root/roles/nginx
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2020-01-18 05:28:50 -0500
committerThedro Neely <thedroneely@gmail.com>2020-01-18 05:28:50 -0500
commit3a01f3387ed41b74f1982dd1d155136bb44bdb49 (patch)
treefa25a58463b16196344e5af9e18d1215c20d0c98 /roles/nginx
parent61630673d7266085b7557143d762fe50cf151590 (diff)
downloadplaybooks-3a01f3387ed41b74f1982dd1d155136bb44bdb49.tar.gz
playbooks-3a01f3387ed41b74f1982dd1d155136bb44bdb49.tar.bz2
playbooks-3a01f3387ed41b74f1982dd1d155136bb44bdb49.zip
roles/nginx/main: Enable services
Diffstat (limited to 'roles/nginx')
-rw-r--r--roles/nginx/main.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/nginx/main.yml b/roles/nginx/main.yml
index 8f4791b..f9366fa 100644
--- a/roles/nginx/main.yml
+++ b/roles/nginx/main.yml
@@ -27,6 +27,13 @@
groups: "{{ user }}"
home: "{{ home }}"
+ - name: Installing packages
+ apk:
+ state: present
+ update_cache: yes
+ name:
+ - logrotate
+
- name: Installing the required nginx dependencies
apk:
state: present
@@ -252,3 +259,10 @@
group: "{{ user }}"
mode: '0644'
+ - name: Enabling services
+ service:
+ name: "{{ item }}"
+ state: started
+ enabled: yes
+ with_items:
+ - nginx