Skip to content

Commit

Permalink
Change 'sudo' to 'become' to match top-level playbook.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnarc committed Feb 5, 2016
1 parent 3c6fb7a commit 1dc5ec7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: "Restart gearman"
service: "name=gearman-job-server state=restarted"
sudo: yes
become: yes
ignore_errors: yes
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
---
- name: "Install gearman packages"
apt: "pkg=gearman state=present update_cache=yes cache_valid_time=3600"
sudo: yes
become: yes

- name: "Populate gearman defaults"
template: "src=etc/default/gearman-job-server dest=/etc/default/gearman-job-server owner=root group=root"
notify:
- "Restart gearman"
sudo: yes
become: yes

- name: "Ensure that gearman is enabled"
service: "name=gearman-job-server enabled=yes"
sudo: yes
become: yes

- name: "Ensure that gearman is running"
service: "name=gearman-job-server state=started"
sudo: yes
become: yes

- name: "Flush handlers"
meta: flush_handlers

0 comments on commit 1dc5ec7

Please sign in to comment.