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

42 lines
941 B
YAML
Raw Normal View History

2020-08-18 11:57:53 +02:00
- name: apt update
become: yes
apt:
update_cache: yes
cache_valid_time: 300
- name: install common-packages
become: yes
apt:
name: "{{ programs_common }}"
state: present
- name: install vm-packages
become: yes
apt:
name: "{{ programs_only_vms }}"
state: present
when: ansible_virtualization_role == 'guest'
- name: install physical-packages
become: yes
apt:
name: "{{ programs_only_physical }}"
state: present
when: ansible_virtualization_role != 'guest'
- name: copy hddtemps.sh
become: yes
template:
src: "hddtemps.sh"
dest: "/usr/local/bin/hddtemps.sh"
mode: a+x
when: ansible_virtualization_role != 'guest'
- name: copy systemtemps.sh
become: yes
template:
src: "systemtemps.sh"
dest: "/usr/local/bin/systemtemps.sh"
mode: a+x
when: ansible_virtualization_role != 'guest'