Catching up with current successes
This commit is contained in:
26
roles/ShadowArch/tasks/archlinux-network.yml
Normal file
26
roles/ShadowArch/tasks/archlinux-network.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
|
||||
- name: ArchLinux network packages
|
||||
become: yes
|
||||
package:
|
||||
name:
|
||||
- netctl
|
||||
state: present
|
||||
|
||||
- name: Static ArchLinux network config
|
||||
become: yes
|
||||
when: static
|
||||
template:
|
||||
src: netctl-static.j2
|
||||
dest: "/etc/netctl/{{ ipinterface }}"
|
||||
|
||||
- name: Dynamic ArchLinux network config
|
||||
become: yes
|
||||
when: static
|
||||
template:
|
||||
src: netctl-dhcp.j2
|
||||
dest: "/etc/netctl/{{ ipinterface }}"
|
||||
|
||||
- name: Enable network config
|
||||
become: yes
|
||||
command: "netctl enable {{ ipinterface }}"
|
||||
Reference in New Issue
Block a user