feat: ansible: base config
This commit is contained in:
parent
25f87a3654
commit
1b2a653ea9
1 changed files with 36 additions and 0 deletions
36
ansible/playbook.yml
Normal file
36
ansible/playbook.yml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
|
---
|
||||||
|
- name: Install and enable firewall
|
||||||
|
hosts: [mcaptcha_dos, mcaptcha_demo_server, mcaptcha_mcaptcha]
|
||||||
|
remote_user: atm
|
||||||
|
pre_tasks:
|
||||||
|
- name: Ensure all VMs are reachable
|
||||||
|
ansible.builtin.ping:
|
||||||
|
roles:
|
||||||
|
- ufw
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Install git, zip, nginx, wget, curl & other utils
|
||||||
|
become: true
|
||||||
|
ansible.builtin.apt:
|
||||||
|
update_cache: true
|
||||||
|
pkg:
|
||||||
|
- git
|
||||||
|
- wget
|
||||||
|
- curl
|
||||||
|
- gpg
|
||||||
|
- ca-certificates
|
||||||
|
- zip
|
||||||
|
- python3-pip
|
||||||
|
- virtualenv
|
||||||
|
- python3-setuptools
|
||||||
|
- ufw
|
||||||
|
|
||||||
|
- name: Install Docker
|
||||||
|
hosts: mcaptcha_dos
|
||||||
|
remote_user: atm
|
||||||
|
roles:
|
||||||
|
- docker
|
Loading…
Reference in a new issue