Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature prj1 ansible #12

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,19 @@ Default web root:
```

## If you require permissions to GCP, or Gitlab resources, please talk to [email protected]

## This is an update to Jenkins

## This is the new update

## I have updated the SSH Plugin

## I am in the blocker session

## Lets trigger you here

## EC@ has power

## THis is a trigger for ansible

## Triger Artifacts
12 changes: 12 additions & 0 deletions inventory/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[nfs]
172.31.3.128 ansible_ssh_user='ec2-user'

[webservers]
172.31.12.46 ansible_ssh_user='ec2-user'
172.31.11.202 ansible_ssh_user='ec2-user'

[db]
172.31.22.39 ansible_ssh_user='ec2-user'

[lb]
172.31.43.144 ansible_ssh_user='ubuntu'
Empty file added inventory/prod.yml
Empty file.
Empty file added inventory/staging.yml
Empty file.
Empty file added inventory/uat.yml
Empty file.
22 changes: 22 additions & 0 deletions playbooks/common.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
- name: update web, nfs and db servers
hosts: webservers, nfs, db
remote_user: ec2-user
become: yes
become_user: root
tasks:
- name: ensure wireshark is at the latest version
yum:
name: wireshark
state: latest

- name: update LB server
hosts: lb
remote_user: ubuntu
become: yes
become_user: root
tasks:
- name: ensure wireshark is at the latest version
apt:
name: wireshark
state: latest