vifreefly / kimuraframework

Kimurai is a modern web scraping framework written in Ruby which works out of box with Headless Chromium/Firefox, PhantomJS, or simple HTTP requests and allows to scrape and interact with JavaScript rendered websites

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

albandum opened this issue · comments

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 ubuntu@3.127.x.x --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 ubuntu@3.127.x.x --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 :)