Jhooq
open-menu closeme
Home
Ansible
Kubernetes
Terraform
Google Cloud
YouTube
Tools
About
Contact
github twitter linkedin rss
  • Ansible git clone - clone public and private repositories with the git module (key_file, accept_hostkey, version, depth, force, update), tested on ansible-core 2.21

    calendar Apr 21, 2023 · 11 min read  ·
    Last Modified : Oct 17, 2026
    Share on: twitter facebook linkedin copy
    Ansible git clone - clone public and private repositories with the git module (key_file, accept_hostkey, version, depth, force, update), tested on ansible-core 2.21

    TL;DR Public repository: ansible.builtin.git with repo, dest and version. The first run reports changed=true and the commit it checked out; the second run reports changed=false because the module compares the commit before and after. Private repository over SSH: add key_file pointing at a deploy key on the target and …


    Read More
  • ansible --limit - Run a Playbook on One Host, a Group or a Pattern (Exclude with !, Intersect with &, Wildcards, Ranges, @retry File) with Real Output from ansible-core 2.21

    calendar Apr 17, 2023 · 19 min read  ·
    Last Modified : Oct 17, 2026
    Share on: twitter facebook linkedin copy
    ansible --limit - Run a Playbook on One Host, a Group or a Pattern (Exclude with !, Intersect with &, Wildcards, Ranges, @retry File) with Real Output from ansible-core 2.21

    TL;DR --limit (or -l) is an intersection: the play runs on the hosts matched by its hosts: line and by your pattern. It can shrink the host list, never grow it. The patterns: web1 (one host), db (a group), web1,db2 (a list), 'web*' (wildcard), 'all:!db' (exclude), 'prod:&web' (intersect), 'web[0:1]' (position in …


    Read More
  • Easy Fix for 'zsh command not found ansible' Error After Installing Ansible with Pip

    calendar Apr 16, 2023 · 4 min read  ·
    Last Modified : Apr 16, 2023
    Share on: twitter facebook linkedin copy
    Easy Fix for 'zsh command not found ansible' Error After Installing Ansible with Pip

    It's conceivable that the directory where pip installed Ansible is not in your system's PATH environment variable if you used pip to install Ansible and are getting the error message - 1zsh: command not found: ansible. There are a few options for fixing this issue depending on your local Ansible configuration. So …


    Read More
  • Demystifying Hosts, Inventory Roles, and Tasks

    calendar Apr 15, 2023 · 5 min read  ·
    Last Modified : Apr 15, 2023
    Share on: twitter facebook linkedin copy
    Demystifying Hosts, Inventory Roles, and Tasks

    Are you interested in finding out how to automate your IT infrastructure and manage your servers with Ansible? You've come to the proper location if so! We'll go in-depth on the in this blog article and demonstrate how to use the following - Inventory file - What are Hosts or Inventory Files? Tasks - How to define …


    Read More
  • Unable to start service apache2: Job for apache2.service failed because the control process exited with error code - the three real causes and the Ansible playbook that shows you which one (reproduced on Ubuntu 24.04)

    calendar Apr 14, 2023 · 11 min read  ·
    Last Modified : Oct 17, 2026
    Share on: twitter facebook linkedin copy
    Unable to start service apache2: Job for apache2.service failed because the control process exited with error code - the three real causes and the Ansible playbook that shows you which one (reproduced on Ubuntu 24.04)

    TL;DR The message is a relay, not a reason. Ansible's service module ran systemctl start apache2, systemd ran apachectl start, apachectl exited non-zero. The reason is in journalctl -u apache2 -n 20 on the target. Three causes cover almost every case: something else on port 80 (AH00072: make_sock: could not bind to …


    Read More
  • Why Ansible is the Ultimate Tool for DevOps Teams - A Beginner's Guide?

    calendar Apr 3, 2023 · 16 min read  ·
    Last Modified : Apr 3, 2023
    Share on: twitter facebook linkedin copy
    Why Ansible is the Ultimate Tool for DevOps Teams - A Beginner's Guide?

    DevOps practices have grown in popularity as businesses try to produce software more quickly and effectively. Ansible is one of the tools that DevOps teams need to help automate and streamline their processes. Ansible is an open-source automation tool that makes it simple for users to automate their network devices, …


    Read More
  • Terraform concat strings, multiline strings and every string function - tested in terraform console (v1.16)

    calendar Jan 22, 2023 · 11 min read  ·
    Last Modified : Oct 17, 2026
    Share on: twitter facebook linkedin copy
    Terraform concat strings, multiline strings and every string function - tested in terraform console (v1.16)

    TL;DR To concatenate strings, use interpolation - "${var.app}-${var.env}" gave "Payments-API-prod". Use format() for a fixed pattern or padding, and join(",", list) for a list. concat() does not join strings. It merges lists; concat("payments", "-", "prod") …


    Read More
  • How to use terraform depends_on meta argument?

    calendar Jan 13, 2023 · 8 min read  ·
    Last Modified : Jan 13, 2023
    Share on: twitter facebook linkedin copy
    How to use terraform depends_on meta argument?

    The "depends_on" meta argument in Terraform is used to specify dependencies between resources within a Terraform configuration. This allows Terraform to properly order the creation, modification, and destruction of resources, ensuring that dependent resources are created or modified only after the resources …


    Read More
  • fatal: destination path already exists and is not an empty directory - Ansible git module, 4 Fixes (and Proof That force=yes Is Not One of Them)

    calendar Jan 12, 2023 · 15 min read  ·
    Last Modified : Oct 17, 2026
    Share on: twitter facebook linkedin copy
    fatal: destination path already exists and is not an empty directory - Ansible git module, 4 Fixes (and Proof That force=yes Is Not One of Them)

    TL;DR The message is git's, not Ansible's. ansible.builtin.git runs git clone on the remote host, and git refuses to clone into a directory that already has files. The module reports it as FAILED! => {"cmd": "/usr/bin/git clone --origin origin <repo> <dest>", "msg": …


    Read More
  • Terraform user_data on AWS EC2 - inline script, file(), templatefile(), the 16 KB limit, first-boot-only, and why a change recreates the instance (AWS provider 6.69)

    calendar Jan 2, 2023 · 10 min read  ·
    Last Modified : Oct 17, 2026
    Share on: twitter facebook linkedin copy
    Terraform user_data on AWS EC2 - inline script, file(), templatefile(), the 16 KB limit, first-boot-only, and why a change recreates the instance (AWS provider 6.69)

    TL;DR user_data is a string that EC2 passes to cloud-init on the instance's first boot. Start it with #!/bin/bash for a shell script or #cloud-config for cloud-init YAML; without a recognised first line nothing runs. Three ways to write it: inline with <<-EOT ... EOT, file("${path.module}/setup.sh") for …


    Read More
    • ««
    • «
    • 9
    • 10
    • 11
    • 12
    • 13
    • »
    • »»

Categories

TERRAFORM 67 AWS 50 KUBERNETES 29 DOCKER 28 ANSIBLE 15 HELM CHART 12 DEVOPS 8 GOOGLE CLOUD 8 BLOGGING 6 SSL 6 GITHUB 5 SPRING BOOT 5 AZURE 4 QUARKUS 4
All Categories

AI1 ANSIBLE15 AWS50 AZURE4 BLOGGING6 DEVOPS8 DOCKER28 GITHUB5 GOOGLE CLOUD8 GRADLE1 HADOOP1 HELM CHART12 HIBERNATE1 JENKINS2 KUBERNETES29 KUBESPRAY3 LINUX COMMANDS1 NGINX2 PROMETHEUS-GRAFANA3 QUARKUS4 SPRING BOOT5 SSL6 TERRAFORM67 VAGRANT3
[A~Z][0~9]

Series

TERRAFORM 65 AWS 39 KUBERNETES 29 DOCKER 28 ANSIBLE 14 HELM CHART 12 GOOGLE CLOUD 8 AZURE 4 DEVOPS 4 JENKINS 2 AI 1 LINUX COMMANDS 1

Tags

KUBERNETES 21 HELM CHART 11 TERRAFORM 11 BLOGGING 4 QUARKUS 4 DOCKER 3 GITHUB 3 SSL 3 ANSIBLE 2 CAREER 2 KUBESPRAY 2 SPRING BOOT 2 ANSIBLE INSTALLATION 1 AWS 1
All Tags

ANSIBLE2 ANSIBLE INSTALLATION1 AWS1 AZURE1 BLOGGING4 CAREER2 DEVOPS1 DOCKER3 GIT1 GITHUB3 HADOOP1 HELM CHART11 INDEX1 KUBERNETES21 KUBESPRAY2 NGINX1 QUARKUS4 SECRETS1 SECURITY1 SPRING BOOT2 SSL3 TERRAFORM11 TERRAFORM ERRORS1
[A~Z][0~9]

Recent Posts

  • terraform console: Evaluate Expressions, Functions and cidrsubnet Without Applying Anything (Terraform 1.17)
  • Terraform tls_private_key: Generate SSH Keys and Self-Signed Certificates with the tls Provider (Terraform 1.17)
  • Stop Using .env Files for Secrets: Encrypt Them with sops and age Instead (Real Output, gitleaks Included)
  • Ansible on AWS: Zero-Downtime Deploys Behind an ALB, RDS, and an AI Postmortem (Project 2)
  • Kubernetes IP Address Planning: 22 Problems the Free IP Calculator Solves on EKS, GKE, AKS and On-Premises (kubeadm, Mirantis MKE, RKE2, OpenShift, Tanzu, Talos), with the Numbers and a Screenshot for Each
  • git rebase --exec Explained - Run Your Tests on Every Commit Before You Push, with Real Output, the Failure Path, and the Three Things That Bit Me
  • helm template Explained - Render a Helm Chart Locally Without a Cluster (Helm 4): Values Files, --set, --show-only, --output-dir, and the Traps That Bite
  • Should You Do a Cloud Certification? The Four Reasons I Tell People Not to Collect Them, What the Exams Cost in 2026, and the One Case Where a Certificate Is Worth the Money

Rahul Wagh

Jhooq
Its all about Open Source and DevOps, here I talk about Kubernetes, Docker, Java, Spring boot and practices.
Read More


Jhooq

Copyright 2019-  JHOOQ. All Rights Reserved

to-top
Privacy Policy