--- - include_tasks: resolvconf.yml when: common_resolvconf tags: ['common', 'resolvconf'] - include_tasks: hostname.yml when: common_hostname tags: ['common', 'hostname'] - include_tasks: apt.yml when: common_apt tags: ['common', 'apt'] - include_tasks: locales.yml when: common_locales tags: ['common', 'locales'] - name: set vim as default editor alternatives: name=editor path=/usr/bin/vim.basic when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' tags: common - name: copy some custom script copy: dest="{{ item.dest }}" src="{{ item.src }}" owner=root group=root mode=0755 with_items: "{{ common_scripts }}" tags: common - include_tasks: mailer.yml when: common_mailer tags: ['common', 'mailer'] - include_tasks: ntp.yml when: common_ntp tags: ['common', 'ntp'] - include_tasks: openssh.yml when: common_openssh tags: ['common', 'openssh'] - include_tasks: rsyslog.yml when: common_rsyslog tags: ['common', 'rsyslog']