Skip to content

Commit

Permalink
Reliably enable and start nginx on systemdified Debianoids
Browse files Browse the repository at this point in the history
  • Loading branch information
strfry committed Oct 2, 2018
1 parent 8160298 commit e96b2a7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nginx/server/tasks/Debian.yml
@@ -1,12 +1,19 @@
---
- name: Repo
- name: Debian | Repo
apt_repository:
repo: "{{ nginx_apt_repo }}"

- name: Packages
- name: Debian | Packages
apt:
name: "{{ item }}"
update_cache: yes
state: latest
cache_valid_time: 86400
with_items: "{{ nginx_package_names }}"

- name: Debian | Enable nginx
service:
name: "{{ nginx_service_name }}"
enabled: yes
notify:
- restart nginx

0 comments on commit e96b2a7

Please sign in to comment.