Skip to content

Commit

Permalink
cruise_control: add missing become: on task demanding root priv
Browse files Browse the repository at this point in the history
  • Loading branch information
rpelisse committed Feb 20, 2024
1 parent 899dd48 commit 93e676b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/amq_streams_cruise_control/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ amq_streams_cruise_control_config_properties_template: 'templates/cruisecontrol.
amq_streams_cruise_control_path_to_log4j_properties: "{{ amq_streams_cruise_control_home }}/config/log4j.properties"
amq_streams_cruise_control_log4j_template: 'templates/log4j.properties.j2'
amq_streams_cruise_control_logfilename: '/var/log/cruise-control'
amq_streams_cruise_control_logfiles_requires_priv_escalation: yes
amq_streams_cruise_control_capacity_template: 'templates/capacity.json.j2'
amq_streams_cruise_control_path_to_capacity_file: "{{ amq_streams_cruise_control_home }}/config/capacity.json"
amq_streams_cruise_control_user: root
Expand Down
1 change: 1 addition & 0 deletions roles/amq_streams_cruise_control/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
rhn_product_archive_file_pattern: "{{ amq_streams_cruise_control_rhn_product_archive_file_pattern }}"

- name: "Deploy custom log4j config (if provided)"
become: "{{ amq_streams_cruise_control_logfiles_requires_priv_escalation }}"
when:
- amq_streams_cruise_control_logfilename is defined
block:
Expand Down

0 comments on commit 93e676b

Please sign in to comment.