add vars prompt

master
Ruan Bekker 4 years ago committed by GitHub
parent 91d133cdde
commit 54e10324d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      remote.yml

@ -1,3 +1,4 @@
# https://github.com/vicchi/ansible-pi-lockdown
--- ---
- hosts: raspberrypi - hosts: raspberrypi
become: yes become: yes
@ -5,3 +6,25 @@
become_method: sudo become_method: sudo
roles: roles:
- common - 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…
Cancel
Save