Sha256: cf46a19a34643494cfeb077aced52ed4f4d692407077dca32678ae47a1f2f657

Contents?: true

Size: 494 Bytes

Versions: 11

Compression:

Stored size: 494 Bytes

Contents

<%#
name: Ansible Roles - Ansible Default
job_category: Ansible Playbook
description_format: Run Ansible roles
feature: ansible_run_host
snippet: false
provider_type: Ansible
kind: job_template
model: JobTemplate
%>

---
- hosts: all
  pre_tasks:
    - name: Display all parameters known for the Foreman host
      debug:
        var: foreman
  roles:
<%- if @host.all_ansible_roles.present? -%>
<%=   @host.all_ansible_roles.map { |role| "    - #{role.name.strip}" }.join("\n") %>
<%- end -%>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman_ansible-4.0.4 app/views/foreman_ansible/job_templates/ansible_roles_-_ansible_default.erb
foreman_ansible-5.0.0 app/views/foreman_ansible/job_templates/ansible_roles_-_ansible_default.erb
foreman_ansible-4.0.3 app/views/foreman_ansible/job_templates/ansible_roles_-_ansible_default.erb
foreman_ansible-4.0.2 app/views/foreman_ansible/job_templates/ansible_roles_-_ansible_default.erb
foreman_ansible-4.0.0 app/views/foreman_ansible/job_templates/ansible_roles_-_ansible_default.erb
foreman_ansible-3.0.9 app/views/foreman_ansible/job_templates/ansible_roles_-_ansible_default.erb
foreman_ansible-3.0.8 app/views/foreman_ansible/job_templates/ansible_roles_-_ansible_default.erb
foreman_ansible-3.0.7 app/views/foreman_ansible/job_templates/ansible_roles_-_ansible_default.erb
foreman_ansible-3.0.6 app/views/foreman_ansible/job_templates/ansible_roles_-_ansible_default.erb
foreman_ansible-3.0.5 app/views/foreman_ansible/job_templates/ansible_roles_-_ansible_default.erb
foreman_ansible-3.0.4 app/views/foreman_ansible/job_templates/ansible_roles_-_ansible_default.erb