Browse Source

Use static import instead of dynamic include

When feasible, allows better tag/task filtering.
python3
Zolfa 5 years ago
parent
commit
4029ad23f3
Signed by: zolfa GPG Key ID: E1A43B038C4D6616
4 changed files with 5 additions and 9 deletions
  1. +1
    -1
      roles/coturn/tasks/main.yaml
  2. +1
    -2
      roles/icinga2-monitoring/tasks/main.yaml
  3. +2
    -4
      roles/ldap/tasks/1_configure_server.yaml
  4. +1
    -2
      roles/nginx/tasks/main.yaml

+ 1
- 1
roles/coturn/tasks/main.yaml View File

@ -1,6 +1,6 @@
---
- name: 'install coturn'
include_role: name='service'
import_role: name='service'
vars:
service_name: 'coturn'
service_packages:


+ 1
- 2
roles/icinga2-monitoring/tasks/main.yaml View File

@ -1,5 +1,4 @@
- include_role:
name: 'service'
- import_role: name='service'
vars:
service_name: 'icinga2'
tags:


+ 2
- 4
roles/ldap/tasks/1_configure_server.yaml View File

@ -1,6 +1,5 @@
---
- include_role:
name: 'service'
- import_role: name='service'
vars:
service_name: 'nscd'
service_packages: 'nscd'
@ -17,8 +16,7 @@
- { question: 'slapd/dump_database', value: 'when needed' }
- { question: 'shared/organization', value: '{{ ldap_organization }}' }
- include_role:
name: 'service'
- import_role: name='service'
vars:
service_name: 'slapd'
service_packages:


+ 1
- 2
roles/nginx/tasks/main.yaml View File

@ -1,6 +1,5 @@
---
- include_role:
name: 'service'
- import_role: name='service'
vars:
service_name: 'nginx'
service_packages:


Loading…
Cancel
Save