-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change 'sudo' to 'become' to match top-level playbook.
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |