2 # file: roles/common/tasks/main.yaml
4 - name: Conf - Add permanent proxy settings
6 path: "/etc/environment"
8 line: "{{ item.key }}={{ item.value }}"
9 with_dict: "{{ proxy_env }}"
10 when: proxy_env is defined
14 - name: Inst - Update package cache (apt)
17 cache_valid_time: 3600
19 - ansible_distribution|lower == 'ubuntu'
21 - common-inst-prerequisites
23 - name: Inst - Prerequisites
25 name: "{{ packages | flatten(levels=1) }}"
28 - common-inst-prerequisites
30 - name: Inst - Meson (DPDK)
37 - name: Conf - sudoers admin
41 regexp: "^%admin ALL="
42 line: "%admin ALL=(ALL) ALL"
43 validate: "/usr/sbin/visudo -cf %s"
47 - name: Conf - sudoers nopasswd
52 line: "%sudo ALL=(ALL:ALL) NOPASSWD: ALL"
53 validate: "/usr/sbin/visudo -cf %s"