Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
KevJimenez committed Jan 31, 2024
1 parent 1ba079f commit 058f72c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Run ansible playbook for uninstallation
run: ansible-playbook -i aws_ec2.yml destroyinf.yml

- name: Terraform init
run: terraform init

Expand Down
25 changes: 25 additions & 0 deletions destroyinf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
- name: My first play
hosts: all
become: true

pre_tasks:

- name: Clean and Remove
apt:
uautoclean: true
autoremove: true

tasks:

- name: Install Apache
apt:
name: apache2
state: absent







0 comments on commit 058f72c

Please sign in to comment.