Skip to content

Commit

Permalink
fix the use of become
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomc committed Jan 13, 2017
1 parent ab6136b commit 85a3f5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
service:
name: "{{ jumpcloud_agent_service }}"
state: restarted
become: jumpcloud_use_sudo
become: "{{ jumpcloud_use_sudo }}"
...
2 changes: 1 addition & 1 deletion tasks/update_system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Get JumpCloud SystemKey
command: grep -o -P '(?<=systemKey\":\")[a-zA-Z0-9]*' {{ jumpcloud_agent_config }}
register: jumpcloud_system_key
become: true
become: "{{ jumpcloud_use_sudo }}"

- name: Update System Information
command: >
Expand Down

0 comments on commit 85a3f5b

Please sign in to comment.