Выхлоп какой?
changed: [192.168.7.39] => {
"changed": true,
"cmd": "python as_service.py",
"delta": "0:00:00.437503",
"end": "2019-08-19 08:24:08.807923",
"rc": 0,
"start": "2019-08-19 08:24:08.370420",
"stderr": "",
"stderr_lines": [],
"stdout": "",
"stdout_lines": []сам скрипт:
from pexpect import popen_spawn
from pathlib import Path
sil_cli = str(Path("sil/bin/sil.cmd"))
sil = popen_spawn.PopenSpawn([sil_cli, "setup", "service", "create"])
sil.expect_exact("Enter the SIL Administrator password:", async_=True)
sil.sendline("password")
sil.expect("Please enter the hostname.username password:", async_=True)
sil.sendline("password")