command-line

8 Ansible tutorials tagged “command-line”. Working examples covering automation, configuration management, and DevOps workflows.

Ansible Extra Variables — --extra-vars

playbooks · 5

Use Ansible extra-vars to pass variables from the command line. Override defaults, use JSON, variable files, and dynamic values in playbooks.

beginner

Ansible Ignore SSH Host Key Checking

playbooks · 3

How to avoid the SSH Host Key checking at the beginning of every Ansible execution in our laboratory, CI/CD pipeline, or cloud computing provider.

Beginner

How to Pass Variables to Ansible Playbook via Command Line?

playbooks · 3

How to pass or override an Ansible Playbook variable from the command line in plaintext, JSON, or YAML. It is very useful to combine some script.

Beginner

Ansible GPG Signature Verification

playbooks · 7

Learn how to GPG-sign an Ansible project using the ansible-sign command line tool. Watch a live Playbook by Luca Berton and transform your project from.

Beginner

Project signing with GPG and ansible-sign

playbooks · 7

How to sign an Ansible project using GPG and ansible-sign command line utility. With clear, copy-paste, step-by-step examples.

Beginner

Three options to Safely Limit Ansible Playbooks Execution to a Single Machine

playbooks · 5

Three options to safely limit Ansible Playbook execution to a single machine using runtime parameters, playbook code, and variables.

Advanced

Fix Ubuntu apt dpkg Lock Error — Quick Solutions

playbooks · 6

Fix 'Unable to acquire the dpkg frontend lock' error on Ubuntu. Remove stale locks, kill stuck processes, and prevent lock conflicts safely.

Beginner

Understanding the ansible-console Command

playbooks · 4

Master the ansible-console interactive REPL for ad-hoc commands. Run modules, manage packages, debug hosts, and test tasks in real-time without writing.

Beginner