issues with tasks after upgrade

Work task before upgrade:

TASK [config-seeding : Clean build directory] **********************************
Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/file.py
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: awx
<127.0.0.1> EXEC /bin/sh -c ‘echo ~ && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘( umask 77 && mkdir -p " echo /var/lib/awx/.ansible/tmp/ansible-tmp-1550518656.25-107290640962743 " && echo ansible-tmp-1550518656.25-107290640962743=" echo /var/lib/awx/.ansible/tmp/ansible-tmp-1550518656.25-107290640962743 " ) && sleep 0’
<127.0.0.1> PUT /tmp/tmpva01gk TO /var/lib/awx/.ansible/tmp/ansible-tmp-1550518656.25-107290640962743/file.py
<127.0.0.1> EXEC /bin/sh -c ‘chmod u+x /var/lib/awx/.ansible/tmp/ansible-tmp-1550518656.25-107290640962743/ /var/lib/awx/.ansible/tmp/ansible-tmp-1550518656.25-107290640962743/file.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘/usr/bin/python2 /var/lib/awx/.ansible/tmp/ansible-tmp-1550518656.25-107290640962743/file.py; rm -rf “/var/lib/awx/.ansible/tmp/ansible-tmp-1550518656.25-107290640962743/” > /dev/null 2>&1 && sleep 0’
changed: [localhost]
META: ran handlers

failed
TASK [config-seeding : Clean build directory] **********************************
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: awx
<127.0.0.1> EXEC /bin/sh -c ‘echo ~awx && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘( umask 77 && mkdir -p " echo /var/lib/awx/.ansible/tmp/ansible-tmp-1550685564.21-49495796014029 " && echo ansible-tmp-1550685564.21-49495796014029=" echo /var/lib/awx/.ansible/tmp/ansible-tmp-1550685564.21-49495796014029 " ) && sleep 0’
Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/file.py
<127.0.0.1> PUT /var/lib/awx/.ansible/tmp/ansible-local-4464sAQz1X/tmp7OWQ36 TO /var/lib/awx/.ansible/tmp/ansible-tmp-1550685564.21-49495796014029/AnsiballZ_file.py
<127.0.0.1> EXEC /bin/sh -c ‘chmod u+x /var/lib/awx/.ansible/tmp/ansible-tmp-1550685564.21-49495796014029/ /var/lib/awx/.ansible/tmp/ansible-tmp-1550685564.21-49495796014029/AnsiballZ_file.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘/usr/bin/python2 /var/lib/awx/.ansible/tmp/ansible-tmp-1550685564.21-49495796014029/AnsiballZ_file.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘rm -f -r /var/lib/awx/.ansible/tmp/ansible-tmp-1550685564.21-49495796014029/ > /dev/null 2>&1 && sleep 0’
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “rmtree failed: [Errno 13] Permission denied: ‘./target/seeding/consoleutility/modules’”} (edited)

they add awx /bin/sh -c 'echo ~awx && sleep 0
they changed command from rm -rf EXEC /bin/sh -c 'rm -f -r
they split the exec on file from one step to two steps