EvoBSD/update-utils.yml

45 lines
1.0 KiB
YAML
Raw Permalink Normal View History

# yamllint disable rule:line-length
# Playbook command
# ansible-playbook update-utils.yml -CDKi hosts --tags utils,motd-utils,evomaintenance-utils,evocheck-utils,nagios-nrpe-utils,etc-git-utils -l HOSTNAME
---
- name: Update of scripts used by EvoBSD
hosts: openbsd
become: true
become_user: root
become_method: sudo
vars_files:
- vars/main.yml
- vars/evolix-main.yml
pre_tasks:
- ansible.builtin.include_role:
name: etc-git
tasks_from: commit.yml
vars:
commit_message: "Ansible pre-run update-utils.yml"
when: not ansible_check_mode
tags: always
roles:
- evomaintenance
- etc-git
- base
- nagios-nrpe
- evocheck
- post-install
post_tasks:
- ansible.builtin.include_role:
name: etc-git
tasks_from: commit.yml
vars:
commit_message: "Ansible post-run update-utils.yml"
when: not ansible_check_mode
tags: always
- ansible.builtin.include_role:
name: evocheck
tasks_from: exec.yml