Sha256: 02310199b0249451375b7c7a823a3691d5b91aa3896ab2210a7958b4534d33ed
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
- name: Install upstart job template: src=dj_runner_upstart.j2 dest=/etc/init/dj_runner_{{app_name}}.conf tags: [configure_dj_runner] register: dj_runner_installation when: enabled_delayed_job - name: register unicorn upstart script command: initctl reload-configuration when: dj_runner_installation.changed and enabled_delayed_job tags: [configure_dj_runner] - name: Give deployer user access to DJ upstart jobs lineinfile: 'dest=/etc/sudoers state=present line="{{ deployer_user.name }} ALL = (root) NOPASSWD: /sbin/{{item}} dj_runner_{{app_name}}"' with_items: - start - stop - restart - status - reload tags: [configure_dj_runner] when: enabled_delayed_job - name: restart delayed job runner sudo_upstart: name=dj_runner_{{app_name}} state=restarted remote_user: "{{ deployer_user.name }}" when: force_dj_runner_restart or (dj_runner_installation is defined and dj_runner_installation.changed) or force_db_reset or (app_checkout is defined and app_checkout.changed) and enabled_delayed_job tags: [configure_dj_runner, be_deploy, reset_db]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
taperole-1.0.1 | roles/delayed_job/tasks/main.yml |
taperole-1.0.0 | roles/delayed_job/tasks/main.yml |