2019-10-06 20:41:31 +00:00
|
|
|
---
|
|
|
|
# Common setup tasks for all nodes (universial)
|
2019-10-12 11:09:27 +00:00
|
|
|
# Usage:
|
|
|
|
# - Run this whole role for setup
|
|
|
|
# - You will do nothing wrong, if all steps are executed during periodocal maintenance
|
|
|
|
# - Maintenance can be faster, if some steps are left out:
|
|
|
|
# - Some tasks are only needed for setup
|
|
|
|
# - Some can be run periodically
|
|
|
|
# - Some must run periodically
|
2019-10-06 20:41:31 +00:00
|
|
|
|
|
|
|
- name: Install updates
|
2019-10-31 17:29:35 +00:00
|
|
|
include_tasks: update.yml
|
|
|
|
when: common_settingsonly == false
|
2019-10-06 20:41:31 +00:00
|
|
|
|
2019-10-12 11:09:27 +00:00
|
|
|
# if role has not changed, this will not be needed when just installing updates
|
2019-10-06 20:41:31 +00:00
|
|
|
- name: Install essential tools
|
2019-10-31 17:29:35 +00:00
|
|
|
include_tasks: essentials.yml
|
|
|
|
when: common_settingsonly == false
|
2019-10-06 20:41:31 +00:00
|
|
|
|
2019-10-12 11:09:27 +00:00
|
|
|
# if role has not changed, this will not be needed when just installing updates
|
2019-10-06 20:41:31 +00:00
|
|
|
- name: Install more tools
|
2019-10-31 17:29:35 +00:00
|
|
|
include_tasks: tools.yml
|
|
|
|
when: common_settingsonly == false
|
2019-10-06 20:41:31 +00:00
|
|
|
|
2019-10-12 11:09:27 +00:00
|
|
|
# this will just run once, because of a lock-file
|
|
|
|
- name: Basics - Setup user shell
|
2019-10-31 17:29:35 +00:00
|
|
|
include_tasks: usersetup.yml
|
|
|
|
when: common_settingsonly == false
|
2019-10-12 11:09:27 +00:00
|
|
|
|
|
|
|
# run this for every maintenance/ update cycle
|
2019-10-06 20:41:31 +00:00
|
|
|
- name: Apply user settings
|
|
|
|
import_tasks: usersettings.yml
|