"Oops, we're sorry but something went wrong wrong number of arguments (given 1, expected 0)" when importing an Ansible Role


Getting this error when importing an Ansible role:

**Oops, we're sorry but something went wrong** wrong number of arguments (given 1, expected 0)

Expected outcome:

The role imports successfully

Foreman and Proxy versions:


Foreman and Proxy plugin versions:

foreman-tasks 0.14.1
foreman_ansible 2.2.9
foreman_cockpit 2.0.3
foreman_hooks 0.3.14
foreman_memcache 0.1.1

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)



Just fyi, the PR here resolved my issue.

Looks like the fix was in foreman_ansible 2.2.6, but for some reason that release with its fixes is missing from the 2.2-stable branch so it isn’t in any later releases. @ansible team - any idea how this happened?

1 Like

2.2.6 was mistakenly released from master branch instead of 2.2-stable. One commit slipped. I think all should have been restored in 2.2.9, this in particular was not fixed in 2.2.6 though. It was caused by variables deletion (when during import, some vars are found no longer present on proxy). This will be fixed in 2.3.0.

1 Like