mirror of
https://github.com/ruanbekker/rpi-ansible.git
synced 2025-04-19 17:01:38 +02:00
add vars prompt
This commit is contained in:
parent
91d133cdde
commit
54e10324d2
23
remote.yml
23
remote.yml
@ -1,3 +1,4 @@
|
||||
# https://github.com/vicchi/ansible-pi-lockdown
|
||||
---
|
||||
- hosts: raspberrypi
|
||||
become: yes
|
||||
@ -5,3 +6,25 @@
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user