Unable to run script despite escalating privilege in Ansible
问题 Im trying to run a shell script on the host machine after copying it over there using ansible. The script has 777 permissions. Please read the below question as it gives the full scope of the actual issue that we are trying to deal with Set different ORACLE_HOME and PATH environment variable using Ansible - name: Run the Script [List] shell: "/tmp/sqlscript/sql_select.sh {{item}} >> /tmp/sqlscript/output.out" become: yes become_method: sudo become_user: oracle register: orh with_items: "{{