Catching up with current successes
This commit is contained in:
43
roles/ShadowArch/tasks/raspbian-network.yml
Normal file
43
roles/ShadowArch/tasks/raspbian-network.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
---
|
||||
|
||||
- name: Rasbian network packages
|
||||
become: yes
|
||||
package:
|
||||
name:
|
||||
- netbase
|
||||
state: present
|
||||
|
||||
- name: Rasbian network config
|
||||
become: yes
|
||||
when: not static
|
||||
copy:
|
||||
src: raspbian-interfaces
|
||||
dest: "/etc/network/interfaces"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Rasbian network config (static)
|
||||
become: yes
|
||||
when: static
|
||||
template:
|
||||
src: raspbian-static.j2
|
||||
dest: "/etc/network/interfaces"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Raspbian wireless
|
||||
become: yes
|
||||
command:
|
||||
cmd: /bin/bash -c "wpa_passphrase {{ wireless_ssid }} '{{ passwords['Shadowfeed'] }}' > /etc/wpa_supplicant.conf"
|
||||
creates: '/etc/wpa_supplicant.conf'
|
||||
|
||||
- name: Raspbian wireless hardening
|
||||
become: yes
|
||||
file:
|
||||
path: '/etc/wpa_supplicant.conf'
|
||||
state: file
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0600
|
||||
Reference in New Issue
Block a user