Skip to content

Commit 5ef97c5

Browse files
committed
Update to fix issue with service module.
1 parent c1a4878 commit 5ef97c5

File tree

7 files changed

+47
-6
lines changed

7 files changed

+47
-6
lines changed

roles/celery/tasks/setup_supervisor.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
---
22

33
- name: Ensure the Supervisor service is running
4-
service: name=supervisor state=started enabled=yes
4+
service:
5+
name: supervisor
6+
state: started
7+
enabled: yes
8+
# TODO: This is likely due to a bug in Ansible.
9+
# Remove this line in the future.
10+
# See https://github.com/ansible/ansible/issues/75005
11+
use: sysvinit
512

613
- name: Create the Supervisor config file for {{ celery_application_name }}
714
template: src=supervisor_{{ celery_application_name }}.conf.j2

roles/db/tasks/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@
2323
tags: packages
2424

2525
- name: Ensure the PostgreSQL service is running
26-
service: name=postgresql state=started enabled=yes
26+
service:
27+
name: postgresql
28+
state: started
29+
enabled: yes
30+
# TODO: This is likely due to a bug in Ansible.
31+
# Remove this line in the future.
32+
# See https://github.com/ansible/ansible/issues/75005
33+
use: sysvinit
2734

2835
- name: Ensure database is created
2936
become: true

roles/memcached/tasks/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,11 @@
1313
- restart memcached
1414

1515
- name: Ensure the Memcached service is running
16-
service: name=memcached state=started enabled=yes
16+
service:
17+
name: memcached
18+
state: started
19+
enabled: yes
20+
# TODO: This is likely due to a bug in Ansible.
21+
# Remove this line in the future.
22+
# See https://github.com/ansible/ansible/issues/75005
23+
use: sysvinit

roles/nginx/tasks/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,11 @@
3535
notify: reload nginx
3636

3737
- name: Ensure Nginx service is started
38-
service: name=nginx state=started enabled=yes
38+
service:
39+
name: nginx
40+
state: started
41+
enabled: yes
42+
# TODO: This is likely due to a bug in Ansible.
43+
# Remove this line in the future.
44+
# See https://github.com/ansible/ansible/issues/75005
45+
use: sysvinit

roles/rabbitmq/handlers/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
22

33
- name: restart rabbitmq-server
4-
service: name=rabbitmq-server state=restarted
4+
service:
5+
name: rabbitmq-server
6+
state: restarted

roles/rabbitmq/tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
name: rabbitmq-server
3434
state: started
3535
enabled: true
36+
# TODO: This is likely due to a bug in Ansible.
37+
# Remove this line in the future.
38+
# See https://github.com/ansible/ansible/issues/75005
39+
use: sysvinit
3640

3741
- name: Enable the RabbitMQ Management Console
3842
rabbitmq_plugin: names=rabbitmq_management state=enabled

roles/web/tasks/setup_supervisor.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
---
22

33
- name: Ensure the Supervisor service is running
4-
service: name=supervisor state=started enabled=yes
4+
service:
5+
name: supervisor
6+
state: started
7+
enabled: yes
8+
# TODO: This is likely due to a bug in Ansible.
9+
# Remove this line in the future.
10+
# See https://github.com/ansible/ansible/issues/75005
11+
use: sysvinit
512

613
- name: Create the Supervisor config file
714
template: src=supervisor_config.j2

0 commit comments

Comments
 (0)