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.2.1 ansible/roles/delayed_job/tasks/main.yml
subspace-2.2.0 ansible/roles/delayed_job/tasks/main.yml
subspace-2.1.2 ansible/roles/delayed_job/tasks/main.yml
subspace-2.1.1 ansible/roles/delayed_job/tasks/main.yml
subspace-2.1.0 ansible/roles/delayed_job/tasks/main.yml
subspace-2.0.4 ansible/roles/delayed_job/tasks/main.yml
subspace-2.0.3 ansible/roles/delayed_job/tasks/main.yml
subspace-2.0.2 ansible/roles/delayed_job/tasks/main.yml
subspace-2.0.1 ansible/roles/delayed_job/tasks/main.yml
subspace-2.0.0 ansible/roles/delayed_job/tasks/main.yml
subspace-1.0.8 ansible/roles/delayed_job/tasks/main.yml