version 1.2

This commit is contained in:
lenape
2025-04-08 13:56:36 +00:00
parent 7acd8471f9
commit 9ecacd8608
13 changed files with 130 additions and 1005 deletions

4
ansible/ansible.cfg Normal file
View File

@@ -0,0 +1,4 @@
[defaults]
inventory = inventory.ini
private_key_file = ~/.ssh/lenape_key
host_key_checking = False

3
ansible/inventory.ini Normal file
View File

@@ -0,0 +1,3 @@
[all]
vm1 ansible_host=52.179.209.136 ansible_user=lenape
vm2 ansible_host=52.167.139.93 ansible_user=lenape

20
ansible/playbook.yml Normal file
View File

@@ -0,0 +1,20 @@
---
- name: Install NGINX on all VMs
hosts: all
become: true
tasks:
- name: Update APT cache
apt:
update_cache: yes
- name: Install NGINX
apt:
name: nginx
state: present
- name: Ensure NGINX is running
service:
name: nginx
state: started
enabled: true