add port prompt

This commit is contained in:
cody 2023-03-15 15:31:19 +00:00
parent a9ed2f42d9
commit a4b86c5b80
1 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,14 @@
become: true
tasks:
- name: Set JENKINS_PORT variable
vars_prompt:
- name: JENKINS_PORT
prompt: "Please enter the value for JENKINS_PORT"
private: no
when: JENKINS_PORT is not defined or JENKINS_PORT == ""
- name: Add Jenkins repository key
rpm_key:
state: present