dotfiles/tasks/network.yml
Jake Howard ab945b0a48
Replace with_items for loop
It's the new way, apparently
2019-12-09 21:09:00 +00:00

28 lines
620 B
YAML

- name: "Install networking tools"
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
loop:
- 'bind-tools'
- 'gnu-netcat'
- 'nmap'
- name: "Install NetworkManager and associated tools"
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
loop:
- 'networkmanager'
- 'network-manager-applet'
- name: "Enable NetworkManger"
systemd:
name: "NetworkManager"
enabled: true
state: started