Initial commit

This commit is contained in:
Sonny Bakker 2023-06-29 13:33:35 +02:00
parent 06e8243445
commit 1036a8a656
28 changed files with 67 additions and 1020 deletions

View file

@ -1,44 +1,9 @@
- hosts: newsreader
become: true
become_method: sudo
pre_tasks:
- name: install packages
apt:
name: '{{ packages }}'
state: present
notify:
- restart postfix
- 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' }
roles:
- common
- hosts: localhost
tasks:
- import_tasks: 'tasks/main.yml'
- include_role:
name: common
tasks_from: 'ssl.yml'
- include_role:
name: common
tasks_from: 'nginx.yml'
- import_tasks: 'tasks/setup.yml'
- import_tasks: 'tasks/poetry.yml'
- import_tasks: 'tasks/project.yml'
handlers:
- import_tasks: 'handlers.yml'
- import_tasks: 'tasks.yml'
vars_files:
- 'vars/app.yml'
- 'vars/email.yml'
- 'vars/main.yml'
- 'vars/network.yml'
- 'vars/postgres.yml'
- 'vars/reddit.yml'
- 'vars/twitter.yml'