Sha256: 733373a5625d6bfe241e8a25fd7b22f2265b1fb5313a2d06689e77cbf108a5dc

Contents?: true

Size: 1013 Bytes

Versions: 56

Compression:

Stored size: 1013 Bytes

Contents

<%#
name: Ansible Roles - Install from Galaxy
job_category: Ansible Galaxy
description_format: Install roles '%{ansible_roles_list}' from Galaxy
snippet: false
template_inputs:
- name: ansible_roles_list
  required: true
  input_type: user
  description: "List of roles in Ansible Galaxy to install, separated by commas, e.g:
    \"mysql, nginx\"\r\n\r\nThe default location is the 'roles_path' configured on
    /etc/ansible/ansible.cfg, you may override it by filling the 'location' input.
    Click on \"Advanced\" to see it."
  advanced: false
- name: location
  required: false
  input_type: user
  description: A particular directory where you want the downloaded roles to be placed.
  advanced: true
provider_type: Ansible
kind: job_template
model: JobTemplate
%>

---
- hosts: all
  tasks:
    - command: ansible-galaxy install {{ item }} <% "-p #{input('location')}" if input('location').present? %>
      register: out
      with_items:
        - <%= input('ansible_roles_list') %>
    - debug: var=out

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
foreman_ansible-6.1.1 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-6.0.2 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-6.1.0 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-6.0.1 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-5.1.3 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-6.0.0 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-5.1.2 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-5.1.1 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-5.1.0 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-4.0.3.5 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-4.0.3.4 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-4.0.3.3 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-4.0.3.2 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-5.0.1 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-4.0.5 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-4.0.3.1 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-4.0.4 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-5.0.0 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-4.0.3 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
foreman_ansible-4.0.2 app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb