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-15.0.2 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-15.0.1 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-15.0.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-14.2.2 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-14.2.1 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-13.0.7 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-14.2.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-14.1.1 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-14.1.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-13.0.5 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-14.0.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-13.0.4 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-13.0.3 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-13.0.2 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-13.0.1 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-13.0.0 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-12.0.7 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-10.4.4 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-7.1.8 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb
foreman_ansible-12.0.6 app/views/foreman_ansible/job_templates/power_action_-_ansible_default.erb