Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ the httpd module, you will have to add to the list `opensips-http-modules`. Defa
(`[]`) - no other modules are installed.
* `opensips_config` - specify a configuration template that is going to be
used instead of the default opensips configuration file.
* `opensips_start` - specify whether OpenSIPS should be started/restarted. Default value is `yes`.

Example Playbook
----------------
Expand Down
4 changes: 2 additions & 2 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
# handlers file for opensips

- name: opensips start
- name: opensips enable
service:
name: opensips
enabled: true
state: started

- name: opensips restart
service:
name: opensips
state: restarted
when: opensips_start | default(True)
4 changes: 2 additions & 2 deletions tasks/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
name: opensips
state: present
notify:
- opensips start
- opensips enable
- opensips restart
register: apt_install_result
until: apt_install_result is success
Expand All @@ -42,7 +42,7 @@
state: present
when: opensips_modules is defined and opensips_modules | length
notify:
- opensips start
- opensips enable
- opensips restart
register: apt_modules_install_result
until: apt_modules_install_result is success
Expand Down
4 changes: 2 additions & 2 deletions tasks/redhatdnf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
name: opensips
state: present
notify:
- opensips start
- opensips enable
- opensips restart
register: dnf_install_result
until: dnf_install_result is success
Expand All @@ -57,7 +57,7 @@
state: present
when: opensips_modules is defined and opensips_modules | length
notify:
- opensips start
- opensips enable
- opensips restart
register: dnf_modules_install_result
until: dnf_modules_install_result is success
Expand Down
4 changes: 2 additions & 2 deletions tasks/redhatyum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
name: opensips
state: present
notify:
- opensips start
- opensips enable
- opensips restart
register: yum_install_result
until: yum_install_result is success
Expand All @@ -57,7 +57,7 @@
state: present
when: opensips_modules is defined and opensips_modules | length
notify:
- opensips start
- opensips enable
- opensips restart
register: yum_modules_install_result
until: yum_modules_install_result is success
Expand Down