Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kimurai setup not passing all necessary arguments to ansible-playbook on Mac OS Catalina #41

Open
albandum opened this issue May 7, 2020 · 0 comments

Comments

@albandum
Copy link

albandum commented May 7, 2020

Hi,

I'm getting this error while trying to use the kimurai setup command on a Ubuntu 18.04 LTS EC2, running from a fresh brew install ansible on a macbook pro on Catalina with ansible 2.9.7.

kimurai setup [email protected] --ask-sudo --ssh-key-path /Users/xxx/Development/ssh-keys/xxx.pem
usage: ansible-playbook [-h] [--version] [-v] [-k] [--private-key PRIVATE_KEY_FILE]
                        [-u REMOTE_USER] [-c CONNECTION] [-T TIMEOUT]
                        [--ssh-common-args SSH_COMMON_ARGS] [--sftp-extra-args SFTP_EXTRA_ARGS]
                        [--scp-extra-args SCP_EXTRA_ARGS] [--ssh-extra-args SSH_EXTRA_ARGS]
                        [--force-handlers] [--flush-cache] [-b] [--become-method BECOME_METHOD]
                        [--become-user BECOME_USER] [-K] [-t TAGS] [--skip-tags SKIP_TAGS] [-C]
                        [--syntax-check] [-D] [-i INVENTORY] [--list-hosts] [-l SUBSET]
                        [-e EXTRA_VARS] [--vault-id VAULT_IDS]
                        [--ask-vault-pass | --vault-password-file VAULT_PASSWORD_FILES] [-f FORKS]
                        [-M MODULE_PATH] [--list-tasks] [--list-tags] [--step]
                        [--start-at-task START_AT_TASK]
                        playbook [playbook ...]
ansible-playbook: error: argument --ssh-extra-args: expected one argument

I tried migrating back to ansible 2.8 but getting this :

kimurai setup [email protected] --ask-sudo --ssh-key-path /Users/xxx/Development/ssh-keys/xxx.pem
BECOME password:

PLAY [all] ******************************************************************************************

TASK [Gathering Facts] ******************************************************************************
ERROR! Unexpected Exception, this is probably a bug: cannot pickle '_io.TextIOWrapper' object

Looks like it's a matter of ansible's version (I've never used ansible before, only puppet and chef). I'll take a look around, but this might need some updating - or provide which version we should test against in the readme.

Note : No problem installing it through a localhost ansible install directly on the ubuntu machine, so not anything urgent whatsoever :)

@albandum albandum changed the title kimurai setup not passing all necessary arguments to ansible-playbook kimurai setup not passing all necessary arguments to ansible-playbook on Mac OS Catalina May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant