Sha256: 4c242680886e28bca44fb3bab46d2ad7dab8b4d35d453d5884a8febd7d892e23

Contents?: true

Size: 594 Bytes

Versions: 74

Compression:

Stored size: 594 Bytes

Contents

<%#
name: Power Action - Ansible Default
job_category: Ansible Power
description_format: "%{action} host"
snippet: false
template_inputs:
- name: action
  required: true
  input_type: user
  description: Action to perform on the service
  options: "restart\r\nshutdown"
  advanced: false
provider_type: Ansible
kind: job_template
model: JobTemplate
%>

---
- hosts: all
  tasks:
    - shell: |
        echo <%= input('action') %> host && sleep 3
        <%= case input('action')
          when 'restart'
            'shutdown -r +1'
          else
            'shutdown -h +1'
          end %>

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
foreman_ansible-12.0.5 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-10.4.3 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-12.0.4 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-10.4.2 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-12.0.3 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-12.0.2 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-12.0.1 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-12.0.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-11.2.1 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-7.1.7 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-11.2.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-11.1.2 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-7.1.6 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-11.1.1 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-10.4.1 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-7.1.5 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-11.1.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-10.4.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-10.3.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-11.0.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb