Moved host definition into inventory

This commit is contained in:
Jim Martens 2020-01-03 16:51:44 +01:00
parent 6a28f054c5
commit bea127aa2a
2 changed files with 3 additions and 5 deletions

2
hosts.example Normal file
View File

@ -0,0 +1,2 @@
[vps]
vps123456.ovh.net

View File

@ -3,12 +3,8 @@
gather_facts: false
port: 22
remote_user: root
hosts:
- "{{ target }}"
hosts: vps
vars_prompt:
- name: target
prompt: "Domain of the machine to set up"
private: no
- name: new_root_pw
prompt: "What should be the new root password?"
private: yes