diff --git a/dotfiles.yml b/dotfiles.yml index 46f8e33..0fe276d 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -5,6 +5,7 @@ file: vars.yml - import_tasks: tasks/user.yml - import_tasks: tasks/packages.yml + - import_tasks: tasks/network.yml - import_tasks: tasks/python.yml - import_tasks: tasks/vim.yml - import_tasks: tasks/intersect.yml diff --git a/tasks/network.yml b/tasks/network.yml new file mode 100644 index 0000000..21182b9 --- /dev/null +++ b/tasks/network.yml @@ -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