Skip to content

Commit

Permalink
Duh, use service module
Browse files Browse the repository at this point in the history
  • Loading branch information
seankelly committed Dec 4, 2014
1 parent e64a64f commit 9f5cfcf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions roles/jail/tasks/main.yml
Expand Up @@ -48,10 +48,9 @@
creates: '/usr/local/etc/ezjail/{{ jail_safename.stdout }}'

- name: Enable jails
lineinfile:
dest: /etc/rc.conf
line: 'jail_enable="YES"'
state: present
service:
name: jail
enabled: true

- name: Add jail to jail.conf
lineinfile:
Expand Down

0 comments on commit 9f5cfcf

Please sign in to comment.