Skip to content

Commit 93e676b

Browse files
committed
cruise_control: add missing become: on task demanding root priv
1 parent 899dd48 commit 93e676b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

roles/amq_streams_cruise_control/defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ amq_streams_cruise_control_config_properties_template: 'templates/cruisecontrol.
1313
amq_streams_cruise_control_path_to_log4j_properties: "{{ amq_streams_cruise_control_home }}/config/log4j.properties"
1414
amq_streams_cruise_control_log4j_template: 'templates/log4j.properties.j2'
1515
amq_streams_cruise_control_logfilename: '/var/log/cruise-control'
16+
amq_streams_cruise_control_logfiles_requires_priv_escalation: yes
1617
amq_streams_cruise_control_capacity_template: 'templates/capacity.json.j2'
1718
amq_streams_cruise_control_path_to_capacity_file: "{{ amq_streams_cruise_control_home }}/config/capacity.json"
1819
amq_streams_cruise_control_user: root

roles/amq_streams_cruise_control/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
rhn_product_archive_file_pattern: "{{ amq_streams_cruise_control_rhn_product_archive_file_pattern }}"
2828

2929
- name: "Deploy custom log4j config (if provided)"
30+
become: "{{ amq_streams_cruise_control_logfiles_requires_priv_escalation }}"
3031
when:
3132
- amq_streams_cruise_control_logfilename is defined
3233
block:

0 commit comments

Comments
 (0)