escalating priviledge from role
diff --git a/tasks/with_no_proxy.yml b/tasks/with_no_proxy.yml index 9c957ab..219e38a 100644 --- a/tasks/with_no_proxy.yml +++ b/tasks/with_no_proxy.yml
@@ -1,17 +1,20 @@ --- -- name: Install Apigee component for version {{ opdk_version }} or greater with no proxy - {{ profile }} - command: '{{ apigee_setup }} -p {{ profile }} -f {{ opdk_installation_config_file }}' - when: opdk_debug_mode is not defined or opdk_debug_mode | trim | lower == 'off' - environment: - PORT_TIMEOUT: '{{ port_timeout | default(60) }}' - UP_TIMEOUT: '{{ up_timeout | default(60) }}' +- block: + - name: Install Apigee component for version {{ opdk_version }} or greater with no proxy - {{ profile }} + command: '{{ apigee_setup }} -p {{ profile }} -f {{ opdk_installation_config_file }}' + when: opdk_debug_mode is not defined or opdk_debug_mode | trim | lower == 'off' + environment: + PORT_TIMEOUT: '{{ port_timeout | default(60) }}' + UP_TIMEOUT: '{{ up_timeout | default(60) }}' -- name: DEBUG_MODE - Install Apigee component for version {{ opdk_version }} or greater with no proxy - {{ profile }} - command: '{{ apigee_setup }} -p {{ profile }} -f {{ opdk_installation_config_file }}' - when: opdk_debug_mode is defined and opdk_debug_mode | trim | lower == 'on' - environment: - PORT_TIMEOUT: '{{ port_timeout | default(60) }}' - UP_TIMEOUT: '{{ up_timeout | default(60) }}' + - name: DEBUG_MODE - Install Apigee component for version {{ opdk_version }} or greater with no proxy - {{ profile }} + command: '{{ apigee_setup }} -p {{ profile }} -f {{ opdk_installation_config_file }}' + when: opdk_debug_mode is defined and opdk_debug_mode | trim | lower == 'on' + environment: + PORT_TIMEOUT: '{{ port_timeout | default(60) }}' + UP_TIMEOUT: '{{ up_timeout | default(60) }}' + + become: yes - name: Wait for ready with no proxy command: '{{ apigee_all }} wait_for_ready'