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-10.2.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-10.1.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-10.0.1 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-10.0.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-7.1.4 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-9.0.1 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-7.1.3 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-9.0.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-7.1.2 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-7.1.1 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-8.0.1 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-8.0.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-7.0.4 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-7.1.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-7.0.3 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-7.0.2 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-7.0.1 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-7.0.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-6.3.4 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-6.3.3 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb