mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-11-21 23:19:24 +00:00
commit
ad014132a3
2 changed files with 8 additions and 1 deletions
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
|
@ -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
|
||||
|
|
2
main.js
2
main.js
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue