Move tasks to playbook/pre_tasks

This commit is contained in:
Sonny Bakker 2021-01-30 17:10:27 +01:00
parent 996d22ac69
commit b1f1ceefb5
2 changed files with 26 additions and 26 deletions

View file

@ -1,22 +1,3 @@
- include_role:
name: common
tasks_from: 'network.yml'
- include_role:
name: common
tasks_from: 'host.yml'
- include_role:
name: common
tasks_from: 'sudoers.yml'
loop:
- { src: '../../templates/sudoers.j2', dest: '/etc/sudoers.d/30-ansible-extra' }
- name: install packages
apt:
name: '{{ packages }}'
state: present
notify:
- restart postfix
- name: copy firewall templates
template:
src: '{{ item.src }}'
@ -93,13 +74,6 @@
}
notify: restart rabbitmq
- include_role:
name: common
tasks_from: 'ssl.yml'
- include_role:
name: common
tasks_from: 'nginx.yml'
- name: copy nginx config
template:
src: 'templates/nginx.j2'