1
0
Fork 0
mirror of https://github.com/dawidd6/action-ansible-playbook.git synced 2024-11-22 07:26:25 +00:00

Merge pull request #28 from dawidd6/sudo

main: pass PATH to sudo
This commit is contained in:
Dawid Dziurla 2021-07-26 18:37:52 +02:00 committed by GitHub
commit ad014132a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -113,3 +113,10 @@ jobs:
directory: test
vault_password: test
options: --inventory hosts
- name: With sudo
uses: ./
with:
playbook: playbook.yml
directory: test
sudo: true
options: --inventory hosts

View file

@ -83,7 +83,7 @@ async function main() {
}
if (sudo) {
cmd.unshift("sudo")
cmd.unshift("sudo", "-E", "env", `PATH=${process.env.PATH}`)
}
process.env.ANSIBLE_FORCE_COLOR = "True"