phpcheck: fall back to sudo for docker automatically

This commit is contained in:
Lino committed 2026-10-21 19:17:23 +02:00
1 parent f4042b27c0
commit d3a70eca24
2 files changed
+33 -16

No files matched your search

+1 -7
View File
@@ -20,18 +20,12 @@ run a playbook with sudo:
ansible-playbook playbooks/<playbook_name>.yml -K
```
check PHP versions on hosts and in running Docker containers:
check PHP versions on hosts and in running Docker containers (falls back to sudo for Docker if needed, add `-K` if sudo requires a password):
```bash
ansible-playbook playbooks/phpcheck.yml
```
with sudo (e.g. if the user is not in the docker group):
```bash
ansible-playbook playbooks/phpcheck.yml -K -e phpcheck_become=true
```
## WSL Setup Instructions
To use Ansible on Windows, you need to set up Windows Subsystem for Linux (WSL).