Add networking things

This commit is contained in:
Jake Howard 2019-05-27 12:02:02 +01:00
parent ea3aba289d
commit 681ce93239
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 29 additions and 0 deletions

View file

@ -5,6 +5,7 @@
file: vars.yml file: vars.yml
- import_tasks: tasks/user.yml - import_tasks: tasks/user.yml
- import_tasks: tasks/packages.yml - import_tasks: tasks/packages.yml
- import_tasks: tasks/network.yml
- import_tasks: tasks/python.yml - import_tasks: tasks/python.yml
- import_tasks: tasks/vim.yml - import_tasks: tasks/vim.yml
- import_tasks: tasks/intersect.yml - import_tasks: tasks/intersect.yml

28
tasks/network.yml Normal file
View file

@ -0,0 +1,28 @@
- name: "Install networking tools"
aur:
skip_installed: true
name: "{{ item }}"
become: true
become_user: aur_builder
when: "item not in installed_packages.stdout_lines"
with_items:
- '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"
with_items:
- 'networkmanager'
- 'network-manager-applet'
- name: "Enable NetworkManger"
systemd:
name: "NetworkManager"
enabled: true
state: started