add a update-utils.yml playbook to update scripts
This commit is contained in:
parent
fae8837f98
commit
56682b1646
|
@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- base: add a "next_part" before executing evobackup in daily.local file
|
- base: add a "next_part" before executing evobackup in daily.local file
|
||||||
- base: add update-evobackup-canary script
|
- base: add update-evobackup-canary script
|
||||||
- base: session timeout is configurable
|
- base: session timeout is configurable
|
||||||
|
- add a update-utils.yml playbook to update scripts
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ ansible-playbook evolixisation.yml --ask-vault-pass -CDKi hosts --skip-tags pf -
|
||||||
|
|
||||||
## How to update scripts
|
## How to update scripts
|
||||||
|
|
||||||
Several tags in the format `*utils` are configured to update the different scripts :
|
Several tags in the format `*utils` are configured to update the different scripts, to be used with the update-utils.yml playbook :
|
||||||
|
|
||||||
* utils : update scripts from base role, utils.yml task
|
* utils : update scripts from base role, utils.yml task
|
||||||
* motd-utils : update script from post-install role, motd.yml task
|
* motd-utils : update script from post-install role, motd.yml task
|
||||||
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
# 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:
|
||||||
|
- 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:
|
||||||
|
- etc-git
|
||||||
|
- base
|
||||||
|
- nagios-nrpe
|
||||||
|
- evocheck
|
||||||
|
- post-install
|
||||||
|
|
||||||
|
post_tasks:
|
||||||
|
- 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
|
||||||
|
|
||||||
|
- include_role:
|
||||||
|
name: evocheck
|
||||||
|
tasks_from: exec.yml
|
Loading…
Reference in New Issue