update tasks to use the new preferred looping syntax (#10)
This commit is contained in:
parent
897053ae02
commit
59eac1706c
|
@ -6,9 +6,10 @@
|
||||||
|
|
||||||
- name: Install WireGuard
|
- name: Install WireGuard
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ packages }}"
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
vars:
|
||||||
|
packages:
|
||||||
- wireguard-dkms
|
- wireguard-dkms
|
||||||
- wireguard-tools
|
- wireguard-tools
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
pacman:
|
pacman:
|
||||||
name: "{{ item }}"
|
name: "{{ packages }}"
|
||||||
state: present
|
state: present
|
||||||
become: yes
|
become: yes
|
||||||
with_items:
|
vars:
|
||||||
|
packages:
|
||||||
- linux-headers
|
- linux-headers
|
||||||
tags:
|
tags:
|
||||||
- wg-install
|
- wg-install
|
||||||
|
|
|
@ -8,9 +8,10 @@
|
||||||
|
|
||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ packages }}"
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
vars:
|
||||||
|
packages:
|
||||||
- software-properties-common
|
- software-properties-common
|
||||||
- linux-headers-{{ ansible_kernel }}
|
- linux-headers-{{ ansible_kernel }}
|
||||||
tags:
|
tags:
|
||||||
|
|
Reference in a new issue