Jérémy Dubois
337dcb9438
- Specification of the different possible uses of the playbook - Addition of the openvpn role, commented by default - No use of the PKG_PATH variable, which is no longer useful since OpenBSD 6.1 installurl.
39 lines
858 B
YAML
39 lines
858 B
YAML
# Playbook command
|
|
# First use (become_method: su) :
|
|
# ansible-playbook evolixisation.yml --ask-vault-pass -CDi hosts -l HOSTNAME
|
|
# Subsequent use (become_method: sudo) :
|
|
# 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
|
|
|
|
|
|
vars_files:
|
|
- vars/main.yml
|
|
# - vars/secrets.yml
|
|
|
|
roles:
|
|
- etc-git
|
|
- base
|
|
- forwarding
|
|
- pf
|
|
- accounts
|
|
- nagios-nrpe
|
|
- post-install
|
|
#- openvpn
|
|
|
|
post_tasks:
|
|
- include: "tasks/commit_etc_git.yml"
|
|
vars:
|
|
commit_message: "Ansible - Evolixisation"
|
|
|
|
# environment:
|
|
# PKG_PATH: "http://ftp.openbsd.org/pub/OpenBSD/{{ ansible_distribution_version }}/packages/{{ ansible_architecture }}/"
|
|
|
|
# vim:ft=ansible
|