ansible-navigator
ansible-navigator copied to clipboard
Navigator errors on macOS
ISSUE TYPE
- Bug Report
SUMMARY
ANSIBLE-NAVIGATOR VERSION
ansible-navigator 2.1.0
CONFIGURATION
I've tested this without any modifications.
LOG FILE
The error I receive prevents the file from being created. However...
(ansible-netapp) [~/Projects/sandbox]$ ansible-navigator run playbook.yaml --eei ansible-ee-base:0.0.0 -m stdout --ce docker
Warning: Issues were found while applying the settings.
Hint: Command provided: 'run playbook.yaml --eei ansible-ee-base:0.0.0 -m
stdout --ce docker'
Error: Failed to create log file
/Users/kbreit/Projects/sandbox/ansible-navigator.log specified in
'Defaults'
The error was: [Errno 13] Permission denied:
'/Users/kbreit/Projects/sandbox/ansible-navigator.log'
Log file set to default location:
/Users/kbreit/Projects/sandbox/ansible-navigator.log.
Hint: Try again with '--lf ~/ansible-navigator.log' to place it in your home
directory
Note: Configuration failed, using default log file location.
(/Users/kbreit/Projects/sandbox/ansible-navigator.log) Log level set to
debug
Hint: Review the hints and log file to see what went wrong.
Error: The log file path or logging engine could not be setup. No log file
will be available, please check the log file path setting. The error
was [Errno 13] Permission denied:
'/Users/kbreit/Projects/sandbox/ansible-navigator.log'
STEPS TO REPRODUCE
ansible-navigator run playbook.yaml --eei ansible-ee-base:0.0.0 -m stdout --ce docker
Run this on macOS 12.5.1 without sudo. This error happens with both --ce docker and --ce podman. In this system I'm using Rancher Desktop for Docker socket support.
EXPECTED RESULTS
The base playbook runs.
ACTUAL RESULTS
I receive the error a few sections up.
ADDITIONAL INFORMATION
macOS 12.5.1 Rancher Desktop latest
Client: Podman Engine
Version: 4.2.0
API Version: 4.2.0
Go Version: go1.18.5
Built: Wed Aug 10 15:46:05 2022
OS/Arch: darwin/amd64
Server: Podman Engine
Version: 4.1.1
API Version: 4.1.1
Go Version: go1.18.4
Built: Fri Jul 22 14:05:59 2022
OS/Arch: linux/amd64
I validated this is an error with Rancher Desktop. I shut down Rancher Desktop, installed Docker Desktop, and it runs fine.
I saw documentation stating podman won't work and I assume same is true for rancher desktop. Closing.