Skip to content

Commit 75481ba

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

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
@@ -16,6 +16,7 @@ amq_streams_cruise_control_logfilename: '/var/log/cruise-control'
1616
amq_streams_cruise_control_logfiles_requires_priv_escalation: yes
1717
amq_streams_cruise_control_capacity_template: 'templates/capacity.json.j2'
1818
amq_streams_cruise_control_path_to_capacity_file: "{{ amq_streams_cruise_control_home }}/config/capacity.json"
19+
amq_streams_cruise_control_path_to_capacity_file_require_priv_escalation: yes
1920
amq_streams_cruise_control_user: root
2021
amq_streams_cruise_control_group: root
2122
amq_streams_cruise_control_zk_host: "{{ groups['zookeepers'][0] }}"

roles/amq_streams_cruise_control/tasks/capacity.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
quiet: True
88

99
- name: "Ensure capacity.json is properly configured"
10+
become: "{{ amq_streams_cruise_control_path_to_capacity_file_require_priv_escalation }}"
1011
ansible.builtin.template:
1112
src: "{{ amq_streams_cruise_control_capacity_template }}"
1213
dest: "{{ amq_streams_cruise_control_path_to_capacity_file }}"

0 commit comments

Comments
 (0)