Fix Ansible tags usage, use import_tasks

This commit is contained in:
Daniel A. Maierhofer
2018-07-13 11:49:08 +02:00
parent 45276ec01e
commit bde0261bab
2 changed files with 11 additions and 11 deletions

View File

@@ -9,5 +9,5 @@
- newaliases
- restart mailer
- include_tasks: "{{ common_mailer_mailer }}.yml"
- import_tasks: "{{ common_mailer_mailer }}.yml"
when: common_mailer_mailer != False

View File

@@ -1,17 +1,17 @@
---
- include_tasks: resolvconf.yml
- import_tasks: resolvconf.yml
when: common_resolvconf
tags: ['common', 'resolvconf']
- include_tasks: hostname.yml
- import_tasks: hostname.yml
when: common_hostname
tags: ['common', 'hostname']
- include_tasks: apt.yml
- import_tasks: apt.yml
when: common_apt
tags: ['common', 'apt']
- include_tasks: locales.yml
- import_tasks: locales.yml
when: common_locales
tags: ['common', 'locales']
@@ -25,26 +25,26 @@
with_items: "{{ common_scripts }}"
tags: common
- include_tasks: mailer.yml
- import_tasks: mailer.yml
when: common_mailer
tags: ['common', 'mailer']
- include_tasks: ntp.yml
- import_tasks: ntp.yml
when: common_ntp
tags: ['common', 'ntp']
- include_tasks: openssh.yml
- import_tasks: openssh.yml
when: common_openssh
tags: ['common', 'openssh']
- include_tasks: rsyslog.yml
- import_tasks: rsyslog.yml
when: common_rsyslog
tags: ['common', 'rsyslog']
- include_tasks: rcfiles.yml
- import_tasks: rcfiles.yml
when: common_rcfiles
tags: ['common', 'rcfiles']
- include_tasks: tty.yml
- import_tasks: tty.yml
when: common_tty
tags: ['common', 'tty']