Skip to content

Commit

Permalink
add missing notify
Browse files Browse the repository at this point in the history
  • Loading branch information
elnappo committed Jan 22, 2015
1 parent 40274eb commit b67f027
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
- name: Install apt-cacher-ng
apt: name=apt-cacher-ng state=latest update_cache=yes cache_valid_time=3600

- name: Enable apt-cacher-ng on boot
service: name=apt-cacher-ng state=started enabled=yes

- name: Create CacheDir
file: path={{ apt_cacher_ng_cache_dir }} owner=apt-cacher-ng group=apt-cacher-ng mode=755 state=directory

Expand All @@ -14,6 +11,11 @@
with_items:
- { regexp: "^Port:", line: "Port: {{ apt_cacher_ng_port }}" }
- { regexp: "^CacheDir:\ ", line: "CacheDir: {{ apt_cacher_ng_cache_dir }}" }
notify:
- restart apt-cacher-ng

- name: Enable apt-cacher-ng on boot
service: name=apt-cacher-ng state=started enabled=yes

- name: Allow apt-cacher-ng (Firewall)
ufw: rule=allow port={{ apt_cacher_ng_port }} proto=tcp
Expand Down

0 comments on commit b67f027

Please sign in to comment.