Sha256: e06f9e36293c184ec0bf87becf4ecdb42ec64edbce2b474ef8e205b4df5c7296

Contents?: true

Size: 963 Bytes

Versions: 31

Compression:

Stored size: 963 Bytes

Contents

---
  - set_fact: delayed_job_installed="true"

  - name: Monit Stop All
    shell: monit stop all
    become: true
    ignore_errors: yes

  - name: Wait for monit to stop
    shell: monit status | grep Monitored | wc -l | awk '{print $1 $2}'
    register: monit_stopped
    retries: 10
    until: monit_stopped.stdout == "0"
    delay: 10
    become: true

  - name: Install delayed_job monit script
    template:
      src: delayed-job-monit-rc
      dest: /etc/monit/conf.d/delayed_job_{{project_name}}_{{rails_env}}
    become: true

  - name: Remove old upstart files
    file:
      path: /etc/init/delayed-job.conf
      state: absent
    become: true

  - name: Remove old monit files
    file:
      path: /etc/monit/conf.d/delayed_job
      state: absent
    become: true

  - name: reload_monit
    shell: monit reload
    become: true

  - name: wait
    pause:
      seconds: 3

  - name: restart_monit
    shell: monit restart all
    become: true

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
subspace-2.5.10 ansible/roles/delayed_job/tasks/main.yml
subspace-2.5.9 ansible/roles/delayed_job/tasks/main.yml
subspace-2.5.8 ansible/roles/delayed_job/tasks/main.yml
subspace-2.5.7 ansible/roles/delayed_job/tasks/main.yml
subspace-2.5.6 ansible/roles/delayed_job/tasks/main.yml
subspace-2.5.5 ansible/roles/delayed_job/tasks/main.yml
subspace-2.5.4 ansible/roles/delayed_job/tasks/main.yml
subspace-2.5.3 ansible/roles/delayed_job/tasks/main.yml
subspace-2.5.2 ansible/roles/delayed_job/tasks/main.yml
subspace-2.5.1 ansible/roles/delayed_job/tasks/main.yml
subspace-2.5 ansible/roles/delayed_job/tasks/main.yml
subspace-2.4.2 ansible/roles/delayed_job/tasks/main.yml
subspace-2.4.1 ansible/roles/delayed_job/tasks/main.yml
subspace-2.4.0 ansible/roles/delayed_job/tasks/main.yml
subspace-2.3.3 ansible/roles/delayed_job/tasks/main.yml
subspace-2.3.2 ansible/roles/delayed_job/tasks/main.yml
subspace-2.3.1 ansible/roles/delayed_job/tasks/main.yml
subspace-2.3.0 ansible/roles/delayed_job/tasks/main.yml
subspace-2.2.3 ansible/roles/delayed_job/tasks/main.yml
subspace-2.2.2 ansible/roles/delayed_job/tasks/main.yml