Create pre.yml

This commit is contained in:
qiaofeng1227 2022-12-06 10:42:56 +08:00 committed by GitHub
parent 65b99c78cd
commit 37b9e6d2d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,19 @@
- pause:
prompt: |
Choice WordPress Solution:
0: default
1: HP(高性能)
private: no
Default:0
register: wordpress_solution_selected
- set_fact:
wordpress_solution_option:
"0": ""
"1": "hp"
- set_fact:
wordpress_solution: "{{wordpress_solution_option[wordpress_solution_selected.user_input]}}"
- debug:
msg: "WordPress Solution is {{wordpress_solution}}"