Friday, July 22, 2022
Thursday, July 21, 2022
Groovy - Useful - Tips and Links
Wednesday, July 20, 2022
Ansible Tutorial -Walkthrough
=====================================================================
https://stackoverflow.com/questions/2953081/how-can-i-write-a-heredoc-to-a-file-in-bash-script
https://www.tecmint.com/use-heredoc-in-shell-scripting/
cat << EOF > Filename.txt
---
---
---
EOF
tee abc.txt << EOF
- name: Testing Ansible
hosts: localhost
tasks:
- name: Echo Message
debug: msg="Ansible is working"
=====================================================================
https://stackoverflow.com/questions/64723019/what-is-difference-between-running-the-commands-ansible-and-ansible-playbook/64723156#64723156
Ansible scripts are called playbooks.
By definition
A playbook is a list of plays. A play is minimally a mapping between a set of hosts selected by a host specifier (usually chosen by groups but sometimes by hostname globs) and the tasks which run on those hosts to define the role that those systems will perform. There can be one or many plays in a playbook.
https://docs.ansible.com/ansible/latest/reference_appendices/glossary.html#term-plays
Then, you execute your playbooks with the command ansible-playbook, for example this command execute the playbook test.yml on all servers in your inventory file:
ansible-playbook test.yml -i inventory all
with ansible command you can execute just a tasks against your servers, for example this command execute a task with the module ping on all servers in your inventory file:
ansible -m ping -i inventory all
Then the difference is with ansible-playbook you can execute a playbook with a lot of tasks and with ansible you just can execute a task.
Welcome to ansible world. Red Hat offers an introductory course of ansible you can take it, It'll help you a lot.
https://www.redhat.com/en/services/training/do007-ansible-essentials-simplicity-automation-technical-overview
=====================================================================
https://geekflare.com/ansible-installation-windows/
ansible-playbook TestAnsible1.yml
ansible-playbook TestAnsible1.yml --connection=local
https://www.tutorialworks.com/ansible-run-playbook/#see-an-example-playbook
ansible-playbook -i hosts --extra-vars "person=Dave" site.yml
=====================================================================
Tuesday, July 5, 2022
SSM - How to setup Session Manager of Systems Manager AWS
https://www.youtube.com/watch?v=-ASMtZBrx-k - Follow this - Just 2 Steps
1) Install Agent on EC2 as per their OS
2) Attach SSMIAMRole to EC2
https://docs.aws.amazon.com/systems-manager/latest/userguide/ssm-agent-get-version.html
yum info amazon-ssm-agent
apt list amazon-ssm-agent
https://docs.aws.amazon.com/systems-manager/latest/userguide/agent-install-ubuntu-64-snap.html
sudo snap list amazon-ssm-agent
snap list
sudo snap services amazon-ssm-agent
============
AWS SSM Session Manager for Shell Access to EC2 Instances | Temporary SSH Credentials | Security
============
Friday, June 24, 2022
Tomcat , J2EE Web app inside Container : DOCKER
Deploying Your First Web App to Tomcat on Docker (softwareyoga.com)
Deploying Your First Web App to Tomcat on Docker | Cprime
https://hub.docker.com/_/tomcat
docker run -p 8080:8080 -it --rm --name oms-monolith oms
docker image ls
docker container ls -a
Azure - Pipeline - Add Approver for Stage
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass
-
https://www.baeldung.com/spring-properties-file-outside-jar https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-featu...
-
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass
-
The decision was made to block such external HTTP repositories by default https://stackoverflow.com/questions/66980047/maven-build-failure-d...