-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added ansible config files and git actions
- Loading branch information
1 parent
4584c9f
commit 66e093d
Showing
7 changed files
with
734 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"ansible.python.interpreterPath": "/bin/python3" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |