From fcf5bf4d03c9a92f618c4ed2cb56484ed4ed4bb8 Mon Sep 17 00:00:00 2001 From: Colin Wilk Date: Tue, 30 May 2023 17:04:33 +0200 Subject: Add become_user and become_method config variables to handlers Signed-off-by: Colin Wilk --- defaults/main.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'defaults') diff --git a/defaults/main.yml b/defaults/main.yml index 58d6f4b..5589273 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -28,6 +28,8 @@ prometheus_target_handler_command_enabled: false # instance with a curl command, or ssh with the prometheus user, this may not be # necessary. prometheus_target_handler_command_become: true +# prometheus_target_handler_command_become_method: +# prometheus_target_handler_command_become_user: # This is the configuration for the command module. For documentation see: # https://docs.ansible.com/ansible/latest/collections/ansible/builtin/command_module.html @@ -50,6 +52,8 @@ prometheus_target_handler_shell_enabled: false # This will configure if the shell handler is run with root privileges or not. # See documentation for prometheus_target_handler_command_become above. prometheus_target_handler_shell_become: true +# prometheus_target_handler_shell_become_method: +# prometheus_target_handler_shell_become_user: # This is the configuration for the shell module. For documentation see: # https://docs.ansible.com/ansible/latest/collections/ansible/builtin/shell_module.html -- cgit v1.2.3