homeserver/roles/mgrote.apt_install_packages/tasks/main.yml

57 lines
1.4 KiB
YAML
Raw Normal View History

2020-08-18 11:57:53 +02:00
- name: apt update
become: yes
ansible.builtin.package:
2020-08-18 11:57:53 +02:00
update_cache: yes
cache_valid_time: 300
- name: install common-packages
become: yes
ansible.builtin.package:
2020-08-18 11:57:53 +02:00
name: "{{ programs_common }}"
state: present
- name: install extra-packages
become: yes
ansible.builtin.package:
name: "{{ programs_extra }}"
state: present
when: programs_extra is defined
2020-08-18 11:57:53 +02:00
- name: install vm-packages
become: yes
ansible.builtin.package:
2020-08-18 11:57:53 +02:00
name: "{{ programs_only_vms }}"
state: present
when: ansible_virtualization_role == 'guest'
- name: install physical-packages
become: yes
ansible.builtin.package:
2020-08-18 11:57:53 +02:00
name: "{{ programs_only_physical }}"
state: present
when: ansible_virtualization_role != 'guest'
- name: copy hddtemps.sh
become: yes
ansible.builtin.template:
2020-08-18 11:57:53 +02:00
src: "hddtemps.sh"
dest: "/usr/local/bin/hddtemps.sh"
mode: a+x
when: ansible_virtualization_role != 'guest'
- name: copy systemtemps.sh
become: yes
ansible.builtin.template:
2020-08-18 11:57:53 +02:00
src: "systemtemps.sh"
dest: "/usr/local/bin/systemtemps.sh"
mode: a+x
when: ansible_virtualization_role != 'guest'
2021-02-13 16:18:29 +01:00
- name: copy zfs-free.sh
become: yes
ansible.builtin.template:
mode: 0555
src: zfs-free.sh
dest: /usr/local/bin/zfs-free.sh
when: "'proxmox' in group_names"