3
0
Fork 0

update tasks to use the new preferred looping syntax (#10)

This commit is contained in:
Alex Hanselka 2019-06-04 14:51:25 -05:00 committed by Robert Wimmer
parent 897053ae02
commit 59eac1706c
3 changed files with 10 additions and 7 deletions

View File

@ -6,9 +6,10 @@
- name: Install WireGuard
package:
name: "{{ item }}"
name: "{{ packages }}"
state: present
with_items:
vars:
packages:
- wireguard-dkms
- wireguard-tools
tags:

View File

@ -1,10 +1,11 @@
---
- name: Install required packages
pacman:
name: "{{ item }}"
name: "{{ packages }}"
state: present
become: yes
with_items:
- linux-headers
vars:
packages:
- linux-headers
tags:
- wg-install

View File

@ -8,9 +8,10 @@
- name: Install required packages
package:
name: "{{ item }}"
name: "{{ packages }}"
state: present
with_items:
vars:
packages:
- software-properties-common
- linux-headers-{{ ansible_kernel }}
tags: