From 1b2a653ea98562914f4d6ce180f29d57d831dc30 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Thu, 17 Aug 2023 05:05:52 +0530 Subject: [PATCH] feat: ansible: base config --- ansible/playbook.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 ansible/playbook.yml diff --git a/ansible/playbook.yml b/ansible/playbook.yml new file mode 100644 index 0000000..5e65f63 --- /dev/null +++ b/ansible/playbook.yml @@ -0,0 +1,36 @@ +# SPDX-FileCopyrightText: 2023 Aravinth Manivannan +# +# 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