Skip to content

Commit

Permalink
make github details dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
proditis committed Dec 9, 2023
1 parent adf2a60 commit f3246c7
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions ansible/runonce/mui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,27 @@
gather_facts: false
vars_prompt:
- name: "myname"
prompt: "1/8. System hostname?"
prompt: "1/6. System hostname?"
default: "mui.example.local"
private: no
- name: "mui_ext_ip"
prompt: "2/8. What is the external (public) IP?"
prompt: "2/6. What is the external (public) IP?"
default: "1.2.3.4"
private: no
- name: "db_ip"
prompt: "3/8. What is the database server IP?"
prompt: "3/6. What is the database server IP?"
default: "10.7.0.253"
private: no
- name: "GITHUB_OAUTH_TOKEN"
prompt: "4/8. Provide a github oauth token?"
default: ""
private: no
- name: "GITHUB_REPO"
prompt: "5/8. Provide a github repo to clone?"
default: "{{ lookup('pipe', 'git remote get-url origin') }}"
private: no
- name: "domain_name"
prompt: "6/8. Provide the fqdn the backend will run on?"
prompt: "4/6. Provide the fqdn the backend will run on?"
default: "mui.example.com"
private: no
- name: "interconnect_interface"
prompt: "7/8. What is the interconnect interface to be used?"
prompt: "5/6. What is the interconnect interface to be used?"
default: "em1"
private: no
- name: "mui_ip"
prompt: "8/8. What is the interconnect IP to be used?"
prompt: "6/6. What is the interconnect IP to be used?"
default: "10.7.0.201"
private: no

Expand Down Expand Up @@ -217,6 +209,7 @@
with_items: "{{rcctl}}"

- name: Clone echoCTF repo
when: GITHUB_REPO is defined
git:
repo: '{{GITHUB_REPO}}'
dest: "/home/moderatorUI/{{domain_name}}"
Expand Down

0 comments on commit f3246c7

Please sign in to comment.