|
@ -14,7 +14,19 @@ |
|
|
service: |
|
|
service: |
|
|
name: '{{ service_name }}' |
|
|
name: '{{ service_name }}' |
|
|
enabled: true |
|
|
enabled: true |
|
|
when: ansible_distribution != 'openwrt' |
|
|
|
|
|
|
|
|
when: ansible_distribution == 'Debian' |
|
|
|
|
|
|
|
|
|
|
|
- block: |
|
|
|
|
|
- name: 'ALPINE | install package' |
|
|
|
|
|
apk: |
|
|
|
|
|
name: '{{ service_packages|join(",") }}' |
|
|
|
|
|
state: 'present' |
|
|
|
|
|
update_cache: true |
|
|
|
|
|
- name: 'ALPINE | start service at boot' |
|
|
|
|
|
service: |
|
|
|
|
|
name: '{{ service_name }}' |
|
|
|
|
|
enabled: true |
|
|
|
|
|
when: ansible_distribution == 'Alpine' |
|
|
|
|
|
|
|
|
- block: |
|
|
- block: |
|
|
- name: 'OPENWRT | install {{ service_name }}' |
|
|
- name: 'OPENWRT | install {{ service_name }}' |
|
|