Skip to content

Commit

Permalink
added ansible config files and git actions
Browse files Browse the repository at this point in the history
  • Loading branch information
KevJimenez committed Jan 29, 2024
1 parent 4584c9f commit 66e093d
Show file tree
Hide file tree
Showing 7 changed files with 734 additions and 0 deletions.
Empty file added .github/workflows/actions.yml
Empty file.
3 changes: 3 additions & 0 deletions ansible-config/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ansible.python.interpreterPath": "/bin/python3"
}
683 changes: 683 additions & 0 deletions ansible-config/ansible.cfg

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions ansible-config/aws_ec2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
plugin: amazon.aws.aws_ec2
regions:
- ap-southeast-1


filter:
tag:cicd: sys1
12 changes: 12 additions & 0 deletions ansible-config/inventory.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
local:
hosts:
proxmox110:
ansible_host: 192.168.100.52 #Local VM (Automation)
ansible_user: kev

cloud:
hosts:
ec2:
ansible_host: 17110711.xyz #EC2 Instance
ansible_user: ubuntu
26 changes: 26 additions & 0 deletions ansible-config/playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
- name: My first play
hosts: all
become: true

pre_tasks:
- name: Update and Upgrade
apt:
update_cache: true
upgrade: dist

tasks:
- name: Install Apache
apt:
name: apache2
state: latest

- name: Ensure apache is running
service:
name: apache2
state: started





3 changes: 3 additions & 0 deletions ansible-config/variables.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
ipv4_local_110: 192.168.100.52
ipv4_cloud_ec2: 52.221.253.193

0 comments on commit 66e093d

Please sign in to comment.