Ansible playbook for configuring a fresh install of Raspbian
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# https://github.com/vicchi/ansible-pi-lockdown
|
|
|
|
---
|
|
|
|
- hosts: raspberrypi
|
|
|
|
become: yes
|
|
|
|
become_user: root
|
|
|
|
become_method: sudo
|
|
|
|
roles:
|
|
|
|
- common
|
|
|
|
#- password
|
|
|
|
#- static-ip
|
|
|
|
vars_prompt:
|
|
|
|
- name: "pi_password"
|
|
|
|
prompt: "New pi account password"
|
|
|
|
private: yes
|
|
|
|
encrypt: "sha512_crypt"
|
|
|
|
confirm: yes
|
|
|
|
- name: "interface"
|
|
|
|
prompt: "Ethernet interface"
|
|
|
|
default: "eth0"
|
|
|
|
private: no
|
|
|
|
- name: "ipaddress"
|
|
|
|
prompt: "Static IPv4 address"
|
|
|
|
private: no
|
|
|
|
- name: "routers"
|
|
|
|
prompt: "Routers (comma separated)"
|
|
|
|
private: no
|
|
|
|
- name: "dns_servers"
|
|
|
|
prompt: "DNS servers (space separated)"
|
|
|
|
default: "8.8.8.8 8.8.4.4"
|
|
|
|
private: no
|