Remote job provided by ansible broken after update

Problem:

After updating from Foreman 1.17.3 to version 1.21 ansible jobs do no longer work.
aktually it Looks like the Job is handelt as a ssh job
The console Shows:

1:
/var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: 1: /var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: ---: not found
   2:
/var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: 2: /var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: -: not found
   3:
/var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: 3: /var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: remote_user:: not found
   4:
/var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: 5: /var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: tasks:: not found
   5:
/var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: 6: /var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: -: not found
   6:
/var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: 7: /var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: command:: not found
   7:
/var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: 8: /var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: register:: not found
   8:
/var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: 10: /var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script: -: not found
   9:
Exit status: 127

Expected outcome:

Output shoud look like this:

1:
PLAY [svlicm01001.wago.local] **************************************************
   2:
   3:
TASK [Gathering Facts] *********************************************************
   4:
ok: [svlicm01001.wago.local]
   5:
TASK [Get Root Password] *******************************************************
   6:
changed: [svlicm01001.wago.local]
   7:
   8:
TASK [debug] *******************************************************************
   9:
ok: [svlicm01001.wago.local] => {
  10:
"out.stdout_lines": [
  11:
"M!&9bQpG[k7J[B+("
  12:
]
  13:
}
  14:
  15:
PLAY RECAP *********************************************************************
  16:
svlicm01001.wago.local : ok=3 changed=1 unreachable=0 failed=0
  17:
Exit status: 0

Foreman and Proxy versions:
Forman Version 1.21.0
forman Proxy 1.21.0

Foreman and Proxy plugin versions:
Foreman plugins
tasks 0.14.5
ansible 2.3.3
hyperv 0.0.4
remote_execution 1.7.0
foreman 4.0.0

Proxy plugins
ansible 2.1.2
dhcp 1.21.0
dynflow 0.2.2
ssh 0.2.0
tftp 1.21.0

Other relevant data:

logs
/var/log/foreman-proxy/proxy.log

2019-04-04T12:47:07 3819f2ab [I] Started GET /tasks/count state=running
2019-04-04T12:47:07 3819f2ab [I] Finished GET /tasks/count with 200 (10.8 ms)
2019-04-04T12:47:07  [D] close: 10.1.103.169:54638
2019-04-04T12:47:07  [D] accept: 10.1.103.169:54640
2019-04-04T12:47:07  [D] Rack::Handler::WEBrick is invoked.
2019-04-04T12:47:07 603b4f95 [I] Started POST /tasks/ 
2019-04-04T12:47:07 603b4f95 [D] ExecutionPlan 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55      pending >>  planning
2019-04-04T12:47:07 603b4f95 [D]          Step 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55: 1   pending >>   running in phase     Plan ForemanRemoteExecutionCore::Actions::RunScript
2019-04-04T12:47:07 603b4f95 [D]          Step 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55: 4   pending >>   running in phase     Plan SmartProxyDynflowCore::Callback::Action
2019-04-04T12:47:07 603b4f95 [D]          Step 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55: 4   running >>   success in phase     Plan SmartProxyDynflowCore::Callback::Action
2019-04-04T12:47:07 603b4f95 [D]          Step 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55: 1   running >>   success in phase     Plan ForemanRemoteExecutionCore::Actions::RunScript
2019-04-04T12:47:07 603b4f95 [D] ExecutionPlan 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55     planning >>   planned
2019-04-04T12:47:07 603b4f95 [I] Finished POST /tasks/ with 200 (20.73 ms)
2019-04-04T12:47:07  [D] ExecutionPlan 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55      planned >>   running
2019-04-04T12:47:07  [D]          Step 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55: 2   pending >>   running in phase      Run ForemanRemoteExecutionCore::Actions::RunScript
2019-04-04T12:47:07  [D]          Step 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55: 2   running >> suspended in phase      Run ForemanRemoteExecutionCore::Actions::RunScript
2019-04-04T12:47:07  [D] start runner 4779aaee-2578-4ea2-bd38-677a0dbdcde2
2019-04-04T12:47:07  [D] opening session to root@svlicm01001.wago.local
2019-04-04T12:47:07  [D] close: 10.1.103.169:54640
2019-04-04T12:47:07  [D] Sending data to /var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script on remote host:
---
- hosts: svlicm01001.wago.local
  remote_user: root

  tasks:
  - name: Get Root Password
    command: /usr/bin/trocla  get hiera/nodes/lc77178.wago.local/root plain
    register: out

  - debug: var=out.stdout_lines
2019-04-04T12:47:07  [D] executing script:
  | sh <<WRAPPER
  | (/var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/script < /dev/null; echo \$?>/var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/exit_code) | /usr/bin/tee /var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/output
  | exit \$(cat /var/tmp/foreman-ssh-cmd-4779aaee-2578-4ea2-bd38-677a0dbdcde2/exit_code)
  | WRAPPER

2019-04-04T12:47:07  [D] refresh runner 4779aaee-2578-4ea2-bd38-677a0dbdcde2
2019-04-04T12:47:07  [D] refreshing runner
2019-04-04T12:47:07  [D] planning to refresh 4779aaee-2578-4ea2-bd38-677a0dbdcde2
2019-04-04T12:47:08  [D] Ticker ticking for 1 events
2019-04-04T12:47:08  [D] refresh runner 4779aaee-2578-4ea2-bd38-677a0dbdcde2
2019-04-04T12:47:08  [D] refreshing runner
2019-04-04T12:47:08  [D] finish runner 4779aaee-2578-4ea2-bd38-677a0dbdcde2
2019-04-04T12:47:08  [D] closing session for command [4779aaee-2578-4ea2-bd38-677a0dbdcde2],0 actors left 
2019-04-04T12:47:08  [D] terminate 4779aaee-2578-4ea2-bd38-677a0dbdcde2
2019-04-04T12:47:08  [D]          Step 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55: 2 got event #<ForemanTasksCore::Runner::Update:0x0055e0f1945818>
2019-04-04T12:47:08  [D]          Step 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55: 2 suspended >>   running in phase      Run ForemanRemoteExecutionCore::Actions::RunScript
2019-04-04T12:47:08  [D]          Step 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55: 2   running >>   success in phase      Run ForemanRemoteExecutionCore::Actions::RunScript
2019-04-04T12:47:08  [D]          Step 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55: 5   pending >>   running in phase      Run SmartProxyDynflowCore::Callback::Action
2019-04-04T12:47:09  [D]          Step 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55: 5   running >>   success in phase      Run SmartProxyDynflowCore::Callback::Action
2019-04-04T12:47:09  [D]          Step 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55: 3   pending >>   running in phase Finalize ForemanRemoteExecutionCore::Actions::RunScript
2019-04-04T12:47:09  [E] Script execution failed
2019-04-04T12:47:09  [D]          Step 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55: 3   running >>     error in phase Finalize ForemanRemoteExecutionCore::Actions::RunScript
2019-04-04T12:47:09  [D] ExecutionPlan 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55      running >>    paused
2019-04-04T12:47:09  [D] ExecutionPlan 5c3cec75-2b28-405a-ae4a-4c0a72fc3b55       paused >>   stopped
2019-04-04T12:47:22  [D] Executor heartbeat
2019-04-04T12:47:23  [D] Starting allocated ip addresses cleanup pass...
2019-04-04T12:47:37  [D] Executor heartbeat

Exactly the same problem here with a fresh 1.22 install:

==> /var/log/foreman-proxy/proxy.log <==
[...]
 2019-06-24T08:32:27  [D] Sending data to /var/tmp/foreman-ssh-cmd-97bc5df2-2630-4c47-aabd-13d5b1024a90/script on remote host:
---
- hosts: all
  tasks:
    - shell: |
        ping -c 1 google.com
      register: out
    - debug: var=out
2019-06-24T08:32:27  [D] executing script:
  | sh <<WRAPPER
  | (/var/tmp/foreman-ssh-cmd-97bc5df2-2630-4c47-aabd-13d5b1024a90/script < /dev/null; echo \$?>/var/tmp/foreman-ssh-cmd-97bc5df2-2630-4c47-aabd-13d5b1024a90/exit_code) | /usr/bin/tee /var/tmp/foreman-ssh-cmd-97bc5df2-2630-4c47-aabd-13d5b1024a90/output
  | exit \$(cat /var/tmp/foreman-ssh-cmd-97bc5df2-2630-4c47-aabd-13d5b1024a90/exit_code)
  | WRAPPER

The ansible playbook job is launched as a shell job … :frowning:

Any idea ?

Hi,
could you check what versions of foreman_remote_execution and foreman_remote_execution_core you have? It should be fixed for remote execution 1.8 and later…

We are on Version 1.7

ruby-foreman-remote-execution 1.7.0-1
ruby-foreman-remote-execution-core 1.1.3-1

Packages have been installed from
deb http://deb.theforeman.org/ plugins 1.21

So we have to update to Foreman to version 1.22 in order to get foreman_remote_execution version 1.8

What version of foreman ansible core do you have?

Actually versions are still the same as in the original post.

Not sure what you mean by ansible core. But foreman_ansible is installed in version 2.3.3. The version of the ansible proxy plugin is 2.1.2

# ansible --version ansible 2.6.3
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516]
# dpkg -l | grep forem
ii  foreman                               1.21.0-1                          amd64        Systems management web interface
ii  foreman-cli                           1.21.0-1                          all          metapackage providing hammer CLI for Foreman
ii  foreman-debug                         1.21.0-1                          all          provides support utility foreman-debug.
ii  foreman-installer                     1.21.0-1                          all          Automated puppet-based installer for The Foreman
ii  foreman-postgresql                    1.21.0-1                          all          metapackage providing PostgreSQL dependencies for Foreman
ii  foreman-proxy                         1.21.0-1                          all          RESTful proxies for DNS, DHCP, TFTP, and Puppet
ii  ruby-foreman-ansible                  2.3.3-1                           all          Foreman Ansible plugin
ii  ruby-foreman-deface                   1.3.2-1                           all          Foreman Deface Plugin Dependency
ii  ruby-foreman-remote-execution         1.7.0-1                           all          Foreman Remote Execution Plugin
ii  ruby-foreman-remote-execution-core    1.1.3-1                           all          Foreman remote execution - core bits
ii  ruby-foreman-tasks                    0.14.5-2                          all          Tasks management engine for Foreman.
ii  ruby-foreman-tasks-core               0.2.5-1                           all          Foreman tasks - core bits
ii  ruby-hammer-cli-foreman               0.16.0-1                          all          Foreman commands for Hammer
ii  ruby-puppetdb-foreman                 4.0.0-1                           all          Foreman Puppetdb Plugin

By foreman ansible core I mean the foreman-ansible-core plugin (same thing as foreman-remote-execution-core, but for ansible), on Debian it should live in the ruby-foreman-ansible-core package. Seeing you don’t have it installed, I’d say that is the root cause.

Installation was done with foreman-install. foremann-ansible-core was not installed because of a file collision. /usr/bin/json_inventory.sh is in ruby-smart-proxy-ansible and ruby-foreman-ansible-core. Same isse as Can't attribute Ansible Roles to a host and Can't install ruby-foreman-ansible-core. After installing the package with the option Dpkg::Options::="–force-overwrite" and restarting the foreman-proxy its working.

Hello everyone, i got the same problem on a current Foreman 1.22 Installation under CentOS7.
Every playbook run fails with the following error:


/var/tmp/foreman-ssh-cmd-c7d2103a-ba23-4c8f-9ccb-2204c2e669b9/script: line 1: -: command not found

/var/tmp/foreman-ssh-cmd-c7d2103a-ba23-4c8f-9ccb-2204c2e669b9/script: line 2: gather_facts:: command not found

/var/tmp/foreman-ssh-cmd-c7d2103a-ba23-4c8f-9ccb-2204c2e669b9/script: line 3: become:: command not found

/var/tmp/foreman-ssh-cmd-c7d2103a-ba23-4c8f-9ccb-2204c2e669b9/script: line 4: roles:: command not found

/var/tmp/foreman-ssh-cmd-c7d2103a-ba23-4c8f-9ccb-2204c2e669b9/script: line 5: -: command not found

Exit status: 127

Am I missing something? Ansible Core seems to be installed

tfm-rubygem-foreman_ansible.noarch     3.0.2-1.fm1_22.el7       @foreman-plugins
tfm-rubygem-foreman_ansible_core.noarch

All installed packages for foreman:

# yum list installed  | grep foreman

foreman.noarch                         1.22.0-1.el7             @foreman        
foreman-cli.noarch                     1.22.0-1.el7             @foreman        
foreman-debug.noarch                   1.22.0-1.el7             @foreman        
foreman-installer.noarch               1:1.22.0-1.el7           @foreman        
foreman-installer-katello.noarch       1:1.22.0-1.el7           @foreman        
foreman-postgresql.noarch              1.22.0-1.el7             @foreman        
foreman-proxy.noarch                   1.22.0-1.el7             @foreman        
foreman-release.noarch                 1.22.0-1.el7             installed       
foreman-release-scl.noarch             7-2.el7                  @foreman        
foreman-selinux.noarch                 1.22.0-1.el7             @foreman        
katello-certs-tools.noarch             2.5.3-1.el7              @foreman        
katello-selinux.noarch                 3.1.1-1.el7              @foreman        
puppet-agent-oauth.noarch              0.5.1-3.el7              @foreman        
rubygem-bundler_ext.noarch             0.4.1-3.el7              @foreman        
rubygem-clamp.noarch                   1.1.2-4.el7              @foreman        
rubygem-concurrent-ruby.noarch         1:1.1.4-2.el7            @foreman        
rubygem-foreman_maintain.noarch        0.4.2-1.el7              @foreman        
rubygem-hashie.noarch                  3.6.0-1.el7              @foreman        
rubygem-highline.noarch                1.7.8-4.el7              @foreman        
rubygem-jwt.noarch                     1.2.1-1.el7              @foreman        
rubygem-kafo.noarch                    3.0.0-1.el7              @foreman        
rubygem-kafo_parsers.noarch            1.0.0-1.el7              @foreman        
rubygem-kafo_wizards.noarch            0.0.1-2.el7              @foreman        
rubygem-little-plugger.noarch          1.1.3-23.el7             @foreman        
rubygem-logging.noarch                 2.2.2-3.el7              @foreman        
rubygem-multi_json.noarch              1.12.2-3.el7             @foreman        
rubygem-net-ssh.noarch                 4.2.0-1.el7              @foreman-plugins
rubygem-openscap.noarch                0.4.7-1.el7              @foreman-plugins
rubygem-powerbar.noarch                2.0.1-1.el7              @foreman        
rubygem-rb-inotify.noarch              0.9.7-2.el7              @foreman        
rubygem-rsec.noarch                    0.4.3-1.el7              @foreman        
rubygem-rubyipmi.noarch                0.10.0-3.el7             @foreman        
rubygem-smart_proxy_ansible.noarch     2.1.2-3.fm1_22.el7       @foreman-plugins
rubygem-smart_proxy_dynflow.noarch     0.2.3-1.el7              @foreman-plugins
rubygem-smart_proxy_openscap.noarch    0.7.2-1.el7              @foreman-plugins
rubygem-smart_proxy_pulp.noarch        1.4.1-1.el7              @foreman-plugins
                                       0.2.1-1.el7              @foreman-plugins
tfm-ror52-rubygem-actioncable.noarch   5.2.1-1.el7              @foreman-rails  
tfm-ror52-rubygem-actionmailer.noarch  5.2.1-1.el7              @foreman-rails  
tfm-ror52-rubygem-actionpack.noarch    5.2.1-1.el7              @foreman-rails  
tfm-ror52-rubygem-actionview.noarch    5.2.1-1.el7              @foreman-rails  
tfm-ror52-rubygem-activejob.noarch     5.2.1-1.el7              @foreman-rails  
tfm-ror52-rubygem-activemodel.noarch   5.2.1-1.el7              @foreman-rails  
tfm-ror52-rubygem-activerecord.noarch  5.2.1-1.el7              @foreman-rails  
tfm-ror52-rubygem-activestorage.noarch 5.2.1-1.el7              @foreman-rails  
tfm-ror52-rubygem-activesupport.noarch 5.2.1-1.el7              @foreman-rails  
tfm-ror52-rubygem-arel.noarch          9.0.0-1.el7              @foreman-rails  
tfm-ror52-rubygem-builder.noarch       3.2.3-1.el7              @foreman-rails  
tfm-ror52-rubygem-coffee-rails.noarch  4.2.2-1.el7              @foreman-rails  
tfm-ror52-rubygem-coffee-script.noarch 2.4.1-1.el7              @foreman-rails  
                                       1.12.2-1.el7             @foreman-rails  
                                       1.1.4-1.el7              @foreman-rails  
tfm-ror52-rubygem-crass.noarch         1.0.4-1.el7              @foreman-rails  
tfm-ror52-rubygem-erubi.noarch         1.7.1-1.el7              @foreman-rails  
tfm-ror52-rubygem-execjs.noarch        2.7.0-1.el7              @foreman-rails  
tfm-ror52-rubygem-globalid.noarch      0.4.1-3.el7              @foreman-rails  
tfm-ror52-rubygem-i18n.noarch          1.4.0-1.el7              @foreman-rails  
tfm-ror52-rubygem-loofah.noarch        2.2.2-2.el7              @foreman-rails  
tfm-ror52-rubygem-mail.noarch          2.7.0-1.el7              @foreman-rails  
tfm-ror52-rubygem-marcel.noarch        0.3.2-1.el7              @foreman-rails  
tfm-ror52-rubygem-method_source.noarch 0.9.0-1.el7              @foreman-rails  
tfm-ror52-rubygem-mime-types.noarch    3.2.2-1.el7              @foreman-rails  
                                       3.2018.0812-1.el7        @foreman-rails  
tfm-ror52-rubygem-mimemagic.noarch     0.3.2-1.el7              @foreman-rails  
tfm-ror52-rubygem-mini_mime.noarch     1.0.0-1.el7              @foreman-rails  
tfm-ror52-rubygem-mini_portile2.noarch 2.3.0-1.el7              @foreman-rails  
tfm-ror52-rubygem-multi_json.noarch    1.13.1-1.el7             @foreman-rails  
tfm-ror52-rubygem-mustermann.noarch    1.0.2-1.el7              @foreman-rails  
tfm-ror52-rubygem-nio4r.x86_64         2.3.1-1.el7              @foreman-rails  
tfm-ror52-rubygem-nokogiri.x86_64      1.8.4-2.el7              @foreman-rails  
tfm-ror52-rubygem-rack.noarch          2.0.6-1.el7              @foreman-rails  
                                       2.0.3-1.el7              @foreman-rails  
tfm-ror52-rubygem-rack-test.noarch     1.1.0-1.el7              @foreman-rails  
tfm-ror52-rubygem-rails.noarch         5.2.1-1.el7              @foreman-rails  
                                       2.0.3-3.el7              @foreman-rails  
                                       1.0.4-2.el7              @foreman-rails  
tfm-ror52-rubygem-railties.noarch      5.2.1-1.el7              @foreman-rails  
tfm-ror52-rubygem-sinatra.noarch       2.0.3-1.el7              @foreman-rails  
tfm-ror52-rubygem-sprockets.noarch     3.7.2-3.el7              @foreman-rails  
                                       3.2.1-1.el7              @foreman-rails  
tfm-ror52-rubygem-sqlite3.x86_64       1.3.13-1.el7             @foreman-rails  
tfm-ror52-rubygem-thor.noarch          0.20.0-3.el7             @foreman-rails  
tfm-ror52-rubygem-thread_safe.noarch   0.3.6-1.el7              @foreman-rails  
tfm-ror52-rubygem-tilt.noarch          2.0.8-1.el7              @foreman-rails  
tfm-ror52-rubygem-turbolinks.noarch    2.5.4-1.el7              @foreman-rails  
tfm-ror52-rubygem-tzinfo.noarch        1.2.5-1.el7              @foreman-rails  
                                       0.7.0-1.el7              @foreman-rails  
                                       0.1.3-1.el7              @foreman-rails  
tfm-ror52-runtime.x86_64               1.0-4.el7                @foreman-rails  
                                       1.1.1-2.el7              @foreman        
tfm-rubygem-addressable.noarch         2.6.0-1.el7              @foreman        
tfm-rubygem-algebrick.noarch           0.7.3-6.el7              @foreman        
tfm-rubygem-ancestry.noarch            3.0.0-3.el7              @foreman        
                                       1:1.0.2-4.el7            @foreman-plugins
tfm-rubygem-apipie-bindings.noarch     0.2.2-2.el7              @foreman        
tfm-rubygem-apipie-params.noarch       0.0.5-3.el7              @foreman        
tfm-rubygem-apipie-rails.noarch        0.5.14-1.el7             @foreman        
tfm-rubygem-audited.noarch             4.7.1-2.el7              @foreman        
tfm-rubygem-awesome_print.noarch       1.8.0-3.el7              @foreman        
tfm-rubygem-bundler_ext.noarch         0.4.1-3.el7              @foreman        
tfm-rubygem-clamp.noarch               1.1.2-4.el7              @foreman        
                                       1:0.4.1-1.fm1_22.el7     @foreman        
tfm-rubygem-css_parser.noarch          1.4.7-3.el7              @foreman        
tfm-rubygem-daemons.noarch             1.2.3-5.el7              @foreman        
tfm-rubygem-deacon.noarch              1.0.0-3.el7              @foreman        
tfm-rubygem-deep_cloneable.noarch      2.3.2-2.el7              @foreman        
tfm-rubygem-deface.noarch              1.3.2-1.el7              @foreman-plugins
tfm-rubygem-domain_name.noarch         0.5.20160310-3.el7       @foreman        
tfm-rubygem-dynflow.noarch             1.2.3-1.fm1_22.el7       @foreman        
tfm-rubygem-excon.noarch               0.58.0-3.el7             @foreman        
tfm-rubygem-facter.x86_64              2.4.0-6.el7              @foreman        
tfm-rubygem-fast_gettext.noarch        1.4.1-3.el7              @foreman        
tfm-rubygem-ffi.x86_64                 1.4.0-8.el7              @foreman-plugins
tfm-rubygem-fog-core.noarch            2.1.0-1.el7              @foreman        
tfm-rubygem-foreman-tasks.noarch       0.15.7-1.fm1_22.el7      @foreman-plugins
tfm-rubygem-foreman-tasks-core.noarch  0.3.2-1.fm1_22.el7       @foreman-plugins
tfm-rubygem-foreman_ansible.noarch     3.0.2-1.fm1_22.el7       @foreman-plugins
tfm-rubygem-foreman_ansible_core.noarch
                                       3.0.0-1.fm1_22.el7       @foreman-plugins
tfm-rubygem-foreman_openscap.noarch    1.0.1-1.fm1_22.el7       @foreman-plugins
tfm-rubygem-foreman_remote_execution.noarch
                                       1.8.2-1.fm1_22.el7       @foreman-plugins
tfm-rubygem-foreman_remote_execution_core.noarch
                                       1.2.0-1.el7              @foreman-plugins
tfm-rubygem-formatador.noarch          0.2.1-11.el7             @foreman        
tfm-rubygem-friendly_id.noarch         5.2.4-2.el7              @foreman        
tfm-rubygem-get_process_mem.noarch     0.2.1-3.el7              @foreman        
tfm-rubygem-gettext_i18n_rails.noarch  1.8.0-1.el7              @foreman        
tfm-rubygem-graphql.noarch             1.8.14-1.el7             @foreman        
tfm-rubygem-graphql-batch.noarch       0.3.10-1.el7             @foreman        
tfm-rubygem-hammer_cli.noarch          0.17.1-1.el7             @foreman        
tfm-rubygem-hammer_cli_foreman.noarch  0.17.0-1.el7             @foreman        
tfm-rubygem-hammer_cli_foreman_bootdisk.noarch
                                       0.1.3-7.el7              @foreman-plugins
tfm-rubygem-hammer_cli_foreman_docker.noarch
                                       0.0.4-4.el7              @foreman-plugins
tfm-rubygem-hammer_cli_foreman_remote_execution.noarch
                                       0.1.0-2.fm1_22.el7       @foreman-plugins
tfm-rubygem-hammer_cli_foreman_tasks.noarch
                                       0.0.13-1.fm1_22.el7      @foreman-plugins
tfm-rubygem-hashie.noarch              3.6.0-1.el7              @foreman        
tfm-rubygem-highline.noarch            1.7.8-4.el7              @foreman        
tfm-rubygem-http-cookie.noarch         1.0.2-3.el7              @foreman        
tfm-rubygem-ipaddress.noarch           0.8.0-11.el7             @foreman        
tfm-rubygem-jwt.noarch                 2.1.0-1.el7              @foreman        
tfm-rubygem-ldap_fluff.noarch          0.4.7-3.el7              @foreman        
tfm-rubygem-little-plugger.noarch      1.1.3-23.el7             @foreman        
tfm-rubygem-locale.noarch              2.0.9-13.el7             @foreman        
tfm-rubygem-logging.noarch             2.2.2-3.el7              @foreman        
tfm-rubygem-net-ldap.noarch            0.15.0-3.el7             @foreman        
tfm-rubygem-net-ping.noarch            2.0.1-3.el7              @foreman        
tfm-rubygem-net-scp.noarch             1.2.1-3.el7              @foreman        
tfm-rubygem-net-ssh.noarch             4.2.0-1.el7              @foreman        
tfm-rubygem-netrc.noarch               0.11.0-3.el7             @foreman        
tfm-rubygem-oauth.noarch               0.5.4-3.el7              @foreman        
tfm-rubygem-parse-cron.noarch          0.1.4-4.fm1_22.el7       @foreman-plugins
tfm-rubygem-passenger.x86_64           4.0.18-10.12.el7         @foreman        
tfm-rubygem-passenger-native.x86_64    4.0.18-10.12.el7         @foreman        
                                       4.0.18-10.12.el7         @foreman        
tfm-rubygem-pg.x86_64                  0.21.0-3.el7             @foreman        
tfm-rubygem-polyglot.noarch            0.3.5-2.el7              @foreman-plugins
tfm-rubygem-powerbar.noarch            2.0.1-1.el7              @foreman        
tfm-rubygem-promise.rb.noarch          0.7.4-1.el7              @foreman        
tfm-rubygem-public_suffix.noarch       3.0.3-1.el7              @foreman        
tfm-rubygem-rabl.noarch                0.13.1-2.el7             @foreman        
tfm-rubygem-rack-cors.noarch           1.0.2-1.el7              @foreman        
tfm-rubygem-rack-jsonp.noarch          1.3.1-7.el7              @foreman        
tfm-rubygem-rails-i18n.noarch          5.1.1-2.el7              @foreman        
tfm-rubygem-rainbow.noarch             2.2.1-3.el7              @foreman-plugins
tfm-rubygem-record_tag_helper.noarch   1.0.0-2.el7              @foreman        
tfm-rubygem-responders.noarch          2.4.0-2.el7              @foreman        
tfm-rubygem-rest-client.noarch         2.0.1-3.el7              @foreman        
tfm-rubygem-roadie.noarch              3.4.0-1.el7              @foreman        
tfm-rubygem-roadie-rails.noarch        2.0.0-1.el7              @foreman        
tfm-rubygem-ruby2ruby.noarch           2.4.2-1.el7              @foreman        
tfm-rubygem-ruby_parser.noarch         3.10.1-2.el7             @foreman        
tfm-rubygem-safemode.noarch            1.3.5-2.el7              @foreman        
tfm-rubygem-scoped_search.noarch       4.1.7-1.el7              @foreman        
tfm-rubygem-secure_headers.noarch      6.0.0-1.el7              @foreman        
tfm-rubygem-sequel.noarch              5.7.1-2.el7              @foreman        
tfm-rubygem-sexp_processor.noarch      4.10.0-5.el7             @foreman        
                                       0.2.2-1.fm1_22.el7       @foreman-plugins
tfm-rubygem-sshkey.noarch              1.9.0-3.el7              @foreman        
tfm-rubygem-statsd-instrument.noarch   2.1.4-2.el7              @foreman        
tfm-rubygem-unf.noarch                 0.1.3-7.el7              @foreman        
tfm-rubygem-unf_ext.x86_64             0.0.6-8.el7              @foreman        
tfm-rubygem-unicode.x86_64             0.4.4.1-5.el7            @foreman        
                                       1.0.5-3.el7              @foreman        
                                       0.5.0-5.el7              @foreman        
tfm-rubygem-webpack-rails.noarch       0.9.8-3.el7              @foreman        
tfm-rubygem-will_paginate.noarch       3.1.7-1.el7              @foreman        
tfm-rubygem-x-editable-rails.noarch    1.5.5-3.el7              @foreman        
tfm-runtime.x86_64                     5.0-6.el7                @foreman

This is how foreman was installed:

foreman-installer  
--scenario "katello" \
--foreman-proxy-dhcp "false" \
--foreman-proxy-dns "false" \
--foreman-proxy-tftp "true" \
--foreman-proxy-puppet "true" \
--foreman-proxy-puppetca "true" \
--foreman-puppetrun "true" \
--enable-foreman-plugin-remote-execution \
--enable-foreman-proxy-plugin-remote-execution-ssh \
--enable-foreman-plugin-ansible \
--enable-foreman-proxy-plugin-ansible \
--enable-foreman-plugin-openscap \
--enable-foreman-proxy-plugin-openscap \
--foreman-plugin-tasks-package 

Thanks

nobody got an idea?