EvoBSD/evolixisation.yml

45 lines
1.0 KiB
YAML
Raw Normal View History

# yamllint disable rule:line-length
2018-12-28 11:23:49 +01:00
# Playbook command
# First use (become_method: su, and var_files uncommented) :
# ansible-playbook evolixisation.yml --ask-vault-pass -CDki hosts -l HOSTNAME -u root
# Subsequent use (become_method: sudo) :
2018-12-28 11:23:49 +01:00
# ansible-playbook evolixisation.yml --ask-vault-pass -CDKi hosts -l HOSTNAME
---
- name: Evolixisation of an OpenBSD system
hosts: openbsd
become: true
become_user: root
become_method: sudo
# become_method: su
2018-12-28 11:23:49 +01:00
vars_files:
- vars/main.yml
# - vars/secrets.yml
# - vars/openbsd-secret.yml
2018-12-28 11:23:49 +01:00
roles:
- etc-git
- base
- forwarding
- pf
- accounts
- nagios-nrpe
- evocheck
2018-12-28 11:23:49 +01:00
- post-install
# - openvpn
# - ospf
# - bgp
2018-12-28 11:23:49 +01:00
post_tasks:
- include: "tasks/commit_etc_git.yml"
vars:
commit_message: "Ansible - Evolixisation"
- include_role:
name: evocheck
tasks_from: exec.yml
2018-12-28 11:23:49 +01:00
# environment:
# PKG_PATH: "http://ftp.openbsd.org/pub/OpenBSD/{{ ansible_distribution_version }}/packages/{{ ansible_architecture }}/"