Skip to content

Commit

Permalink
init ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
xanhacks committed Sep 30, 2024
1 parent 47ceeb7 commit ac8057d
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# HeroCTF All in one

- [terraform/](./terraform/): Deploy our infrastructure, mainly on Linode, AWS and GCP.
- [ansible/](./ansible/): Setup our CTFd and challenges instances.
6 changes: 6 additions & 0 deletions ansible/challenges.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---

- hosts: challenges
gather_facts: yes
roles:
- challs
6 changes: 6 additions & 0 deletions ansible/ctfd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---

- hosts: ctfd
gather_facts: yes
roles:
- ctfd
1 change: 1 addition & 0 deletions ansible/group_vars/challenges
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
challenges_git_url: [email protected]:HeroCTF/HeroCTF_v6.git
1 change: 1 addition & 0 deletions ansible/group_vars/ctfd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ctfd_version: 3.7.3
5 changes: 5 additions & 0 deletions ansible/inventories/dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[ctfd]
heroctf-ctfd ansible_connection=ssh ansible_user=root

[challenges]
heroctf-challenge-1 ansible_connection=ssh ansible_user=root
12 changes: 12 additions & 0 deletions ansible/inventories/prod
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[ctfd]
heroctf-ctfd ansible_connection=ssh ansible_user=root

[challenges]
heroctf-challenge-1 ansible_connection=ssh ansible_user=root
heroctf-challenge-2 ansible_connection=ssh ansible_user=root
heroctf-challenge-3 ansible_connection=ssh ansible_user=root
heroctf-challenge-4 ansible_connection=ssh ansible_user=root
heroctf-challenge-5 ansible_connection=ssh ansible_user=root
heroctf-challenge-6 ansible_connection=ssh ansible_user=root
heroctf-challenge-7 ansible_connection=ssh ansible_user=root
heroctf-challenge-8 ansible_connection=ssh ansible_user=root

0 comments on commit ac8057d

Please sign in to comment.