-
bad:
```
files.download(src=... dest=dl)
files.makedirs(local, exist_ok=True) # this has no effect
server.shell([
f"aunpack --extract-to={local} {dl}",
])
--> Sta…
drewp updated
2 years ago
-
That would allow shipping the `ssh_config` file in the repo next to other inventory and deploy files.
I mostly use the `ssh_config` file for configuring ProxyJump config arguments.
OpenSSH client …
-
Black recently graduated out of beta and is rapidly become _the_ standard code formatter for Python. Although I personally prefer single quotes, standardization is more important and removes any quest…
-
v1 will be the last version to support py2. This is to support legacy systems still using pyinfra. I expect v2 to be at least a year off from today.
-
## Describe the bug
When trying to upload or template a file to remote host without `/tmp` access and when SUDO = True I receive an error that `/tmp` directory is not found even when other value of t…
-
## Describe the bug
```
from pyinfra import config
from pyinfra.operations import server
config.SUDO = True
server.shell(
name = 'Try it with shell',
commands = 'systemctl --user --…
-
## Describe the bug
```shell
# pipenv run -- pyinfra 192.168.1.1 --ssh-user root --ssh-key my_key files.put scripts/shred_disks.sh /tmp/shred_disks.sh
--> An unexpected internal exception occurred:…
-
Generate inventory from Terraform state file.
-
(from discord, cc @pylang)
## Describe the bug
> Using the new backup parameters in the link operation won't allow me to backup to a custom directory.
>
> Problem
> if i'm linking a ~/dotfile…
-
## Describe the bug
systemctl error with unrecognized option when attempting to alter service state with pyinfra
```
[@local] >>> sh -c '! command -v systemctl >/dev/null || systemctl -al --plain…