Browse Source

move service task and handler to a separate role (see ansible issue 23389, 20603, 15902)

python3
Andrea Cimbalo 7 years ago
parent
commit
b14299e2f1
2 changed files with 7 additions and 2 deletions
  1. +5
    -0
      roles/ldap/tasks/main.yaml
  2. +2
    -2
      roles/ssh_server/tasks/main.yaml

+ 5
- 0
roles/ldap/tasks/main.yaml View File

@ -1,3 +1,8 @@
- include_role:
name: service
vars:
service_name: nscd
- name: configure OpenLDAP (domain)
debconf:
name: 'slapd'


+ 2
- 2
roles/ssh_server/tasks/main.yaml View File

@ -1,5 +1,5 @@
- include: service.yaml
# static: yes # see static include issue: https://github.com/ansible/ansible/issues/13485
# We can not use include_role here since it not share thje connection with the current role
- include: roles/service/tasks/main.yaml
vars:
service_name: ssh
service_packages:


Loading…
Cancel
Save