ansible-role-common/tasks/main.yml

29 lines
1.1 KiB
YAML

---
# Common setup tasks for all nodes (universial)
# Usage:
# - Run this whole role for setup
# - You will do nothing wrong, if all steps are executed during periodical 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
# if role has not changed, this will not be needed when just installing updates
- name: Install essential tools
ansible.builtin.include_tasks: essentials.yml
when: common_settingsonly | default(false) == false
# if role has not changed, this will not be needed when just installing updates
- name: Install more tools
ansible.builtin.include_tasks: tools.yml
when: common_settingsonly | default(false) == false
# this will just run once, because of a lock-file
- name: Basics - Setup user shell
ansible.builtin.include_tasks: usersetup.yml
when: common_settingsonly | default(false) == false
# run this for every maintenance/ update cycle
- name: Apply user settings
ansible.builtin.import_tasks: usersettings.yml