Jérémy Dubois
70ab0c80de
So that new users are not created and customized password are not reset based on vars files when executing evolixisation.yml again
62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
# yamllint disable rule:line-length
|
|
# Playbook command
|
|
# First use :
|
|
# ansible-playbook evolixisation.yml --ask-vault-pass -CDki hosts -u root -l HOSTNAME
|
|
# Subsequent use :
|
|
# ansible-playbook evolixisation.yml --ask-vault-pass -CDKi hosts --skip-tags pf,users,generateldif-exec -l HOSTNAME
|
|
|
|
## EXAMPLE OF PLAYBOOK - PLEASE USE YOUR OWN PLAYBOOK
|
|
|
|
---
|
|
# - name: Evolixisation of an OpenBSD system
|
|
# hosts: openbsd
|
|
# become: true
|
|
# become_user: root
|
|
# become_method: sudo
|
|
#
|
|
# vars_files:
|
|
# - vars/main.yml
|
|
# - vars/evolix-main.yml
|
|
# - vars/evolinux-secrets.yml
|
|
#
|
|
# vars:
|
|
# client_number: "XXX"
|
|
# monitoring_mode: "everytime"
|
|
#
|
|
# pre_tasks:
|
|
# - include_role:
|
|
# name: etc-git
|
|
# tasks_from: commit.yml
|
|
# vars:
|
|
# commit_message: "Ansible pre-run evolisation.yml"
|
|
# when: not ansible_check_mode
|
|
# tags: always
|
|
#
|
|
# roles:
|
|
# - evomaintenance
|
|
# - etc-git
|
|
# - base
|
|
# - forwarding
|
|
# - pf
|
|
# - accounts
|
|
# - nagios-nrpe
|
|
# - evocheck
|
|
# - evobackup
|
|
# - post-install
|
|
# # - ospf
|
|
# # - bgp
|
|
# # - { role: collectd, collectd_server: "127.0.0.1" }
|
|
# # - logsentry
|
|
#
|
|
# post_tasks:
|
|
# - include_role:
|
|
# name: etc-git
|
|
# tasks_from: commit.yml
|
|
# vars:
|
|
# commit_message: "Ansible post-run evolisation.yml"
|
|
# when: not ansible_check_mode
|
|
# tags: always
|
|
#
|
|
# - include_role:
|
|
# name: evocheck
|
|
# tasks_from: exec.yml
|