Import Ansible variables

Greetings everyone,

Problem: Not seeing menu item Configure -> Ansible -> Variables

I installed Foreman 1.20 release on CentOS 7 using the command below with options to install the Ansible plugin.

foreman-installer --enable-foreman-plugin-remote-execution --enable-foreman-proxy-plugin-remote-execution-ssh --enable-foreman-plugin-ansible --enable-foreman-proxy-plugin-ansible

These are the foreman RPMs installed:

rubygem-smart_proxy_ansible-2.0.3-2.fm1_20.el7.noarch
ansible-2.7.2-1.el7.noarch
tfm-rubygem-foreman_ansible_core-2.1.2-2.fm1_20.el7.noarch
tfm-rubygem-foreman_ansible-2.2.11-1.fm1_20.el7.noarch
[a-flaporta@ansible01 ~]$ rpm -qa | grep -i foreman
foreman-cli-1.20.0-1.el7.noarch
tfm-rubygem-foreman_remote_execution_core-1.1.4-1.el7.noarch
foreman-installer-1.20.0-1.el7.noarch
foreman-debug-1.20.0-1.el7.noarch
foreman-1.20.0-1.el7.noarch
foreman-release-1.20.0-2.el7.noarch
foreman-selinux-1.20.0-1.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.15.1-1.el7.noarch
tfm-rubygem-foreman-tasks-0.14.2-1.fm1_20.el7.noarch
tfm-rubygem-foreman_ansible_core-2.1.2-2.fm1_20.el7.noarch
tfm-rubygem-foreman_ansible-2.2.11-1.fm1_20.el7.noarch
foreman-postgresql-1.20.0-1.el7.noarch
tfm-rubygem-foreman-tasks-core-0.2.5-2.fm1_20.el7.noarch
tfm-rubygem-foreman_remote_execution-1.6.4-1.fm1_20.el7.noarch
foreman-release-scl-7-2.el7.noarch
foreman-proxy-1.20.0-1.el7.noarch

Ansible version: ansible-2.7.2-1.el7.noarch

I’m not sure what I did wrong, I expected to be able to import smart variable from Ansible roles in the 1.20 version of Foreman.

Thank you!

I think the documentation was released to early, as it is part of 2.3.0 of the plugin which was released earlier today. Packaging is still in progress. So do not worry you did nothing wrong.

@Dirk is correct, this is only available in 2.3.0 which should be in nightly builds soon. The manual does not mention that explicitly, it’s for 2.x branch. If 2.3.0 will work fine, we can bring it back to 1.20, if you could test on nightlies and let us know how it works, it would help :slight_smile:

Hi, I tested this version without luck.
I filled a bug report a few days ago.

Thanks for the link Marek. Hopefully bug issue will be resolved soon.