2020-10-12 14:29:37 +02:00
|
|
|
# yamllint disable rule:line-length
|
2018-12-28 11:23:49 +01:00
|
|
|
# Playbook command
|
2020-10-13 16:01:16 +02:00
|
|
|
# First use (become_method: su) :
|
2020-10-14 09:40:59 +02:00
|
|
|
# ansible-playbook evolixisation.yml --ask-vault-pass -CDki hosts -u root -l HOSTNAME
|
2020-04-21 11:15:27 +02:00
|
|
|
# Subsequent use (become_method: sudo) :
|
2020-10-14 09:40:59 +02:00
|
|
|
# ansible-playbook evolixisation.yml --ask-vault-pass -CDKi hosts --skip-tags pf -l HOSTNAME
|
2018-12-28 11:23:49 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
- name: Evolixisation of an OpenBSD system
|
|
|
|
hosts: openbsd
|
|
|
|
become: true
|
|
|
|
become_user: root
|
|
|
|
become_method: sudo
|
2020-05-22 17:49:18 +02:00
|
|
|
# become_method: su
|
2018-12-28 11:23:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
vars_files:
|
|
|
|
- vars/main.yml
|
2021-12-17 16:09:25 +01:00
|
|
|
- vars/evolix-main.yml
|
|
|
|
- vars/evolinux-secrets.yml
|
2018-12-28 11:23:49 +01:00
|
|
|
|
|
|
|
roles:
|
|
|
|
- etc-git
|
|
|
|
- base
|
|
|
|
- forwarding
|
|
|
|
- pf
|
|
|
|
- accounts
|
|
|
|
- nagios-nrpe
|
2020-05-12 15:04:05 +02:00
|
|
|
- evocheck
|
2018-12-28 11:23:49 +01:00
|
|
|
- post-install
|
2020-05-22 17:49:18 +02:00
|
|
|
# - openvpn
|
|
|
|
# - ospf
|
|
|
|
# - bgp
|
2020-04-21 19:30:06 +02:00
|
|
|
# - { role: collectd, collectd_server: "127.0.0.1" }
|
2018-12-28 11:23:49 +01:00
|
|
|
|
|
|
|
post_tasks:
|
|
|
|
- include: "tasks/commit_etc_git.yml"
|
|
|
|
vars:
|
|
|
|
commit_message: "Ansible - Evolixisation"
|
2020-05-12 15:05:07 +02:00
|
|
|
- include_role:
|
|
|
|
name: evocheck
|
|
|
|
tasks_from: exec.yml
|