netcup-setup/ansible/common_programs.yml

14 lines
389 B
YAML

---
- name: install commonly used programs
hosts: all
become: yes
tasks:
- name: install borgbackup, tmux with zypper and transactional-update
community.general.zypper:
name: "borgbackup tmux"
state: present
register: zypper_result
- name: reboot if borgbackup or tmux was installed
ansible.builtin.reboot:
when: zypper_result.changed