Skip to content

Commit

Permalink
Merge pull request #2 from dnarc/change_sudo_to_become
Browse files Browse the repository at this point in the history
Change 'sudo' to 'become' to match top-level playbook.
  • Loading branch information
hakamine committed Feb 5, 2016
2 parents 3c6fb7a + 1dc5ec7 commit 9b27ff2
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 9b27ff2

Please sign in to comment.