2020-08-18 11:57:53 +02:00
|
|
|
- name: apt update
|
|
|
|
become: yes
|
2021-01-02 10:30:54 +01:00
|
|
|
ansible.builtin.package:
|
2020-08-18 11:57:53 +02:00
|
|
|
update_cache: yes
|
2021-03-25 09:44:44 +01:00
|
|
|
cache_valid_time: 3000
|
2020-08-18 11:57:53 +02:00
|
|
|
|
|
|
|
- name: install common-packages
|
|
|
|
become: yes
|
2021-01-02 10:30:54 +01:00
|
|
|
ansible.builtin.package:
|
2020-08-18 11:57:53 +02:00
|
|
|
name: "{{ programs_common }}"
|
|
|
|
state: present
|
|
|
|
|
2020-12-22 13:20:29 +01:00
|
|
|
- name: install extra-packages
|
|
|
|
become: yes
|
2021-01-02 10:30:54 +01:00
|
|
|
ansible.builtin.package:
|
2020-12-22 13:20:29 +01:00
|
|
|
name: "{{ programs_extra }}"
|
|
|
|
state: present
|
|
|
|
when: programs_extra is defined
|
|
|
|
|
2020-08-18 11:57:53 +02:00
|
|
|
- name: install vm-packages
|
|
|
|
become: yes
|
2021-01-02 10:30:54 +01:00
|
|
|
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
|
2021-01-02 10:30:54 +01:00
|
|
|
ansible.builtin.package:
|
2020-08-18 11:57:53 +02:00
|
|
|
name: "{{ programs_only_physical }}"
|
|
|
|
state: present
|
|
|
|
when: ansible_virtualization_role != 'guest'
|