ansibleAutomation
Read-only
ansible --versionCommand Index
Commands are extracted from fenced code examples across all guides, linked back to their source sections, and labeled with operator safety metadata.
ansible --versionansible --versionansible --versionansible --versionaws --versionaws cloudformation describe-stack-events --stack-name my-stackaws cloudformation describe-stacks --stack-name my-stackaws cloudformation list-stacksaws cloudwatch get-metric-statisticsaws cloudwatch list-metrics --namespace AWS/EC2aws ec2 describe-instance-status --instance-ids i-1234567890abcdef0aws ec2 describe-instancesaws ec2 describe-instancesaws ec2 describe-instancesaws ec2 describe-instances --filters "Name=instance-state-name,Values=running"aws ec2 describe-instances --filters "Name=tag:Environment,Values=production"aws ec2 describe-instances --output tableaws ec2 describe-instances --output textaws ec2 describe-instances --output yamlaws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId,InstanceType,State.Name,PublicIpAddress]' --output tableaws ec2 describe-instances --query 'Reservations[*].Instances[*].InstanceId' --output textaws ec2 describe-route-tablesaws ec2 describe-route-tables --query 'RouteTables[].{id:RouteTableId,routes:Routes}'aws ec2 describe-security-groupsaws ec2 describe-security-groups --query 'SecurityGroups[].{name:GroupName,id:GroupId}' -o tableaws ec2 describe-security-groups -o tableaws ec2 describe-subnetsaws ec2 describe-vpcsaws ecs list-clustersaws ecs list-services --cluster my-clusteraws ecs list-task-definitionsaws eks list-clustersaws eks list-clustersaws eks list-nodegroups --cluster-name my-clusteraws iam get-account-summary > evidence/$(date +%Y-%m-%d)/aws-account-summary.jsonaws iam get-credential-report --query Content --output text | base64 --decode > credential-report.csvaws iam list-access-keys --user-name aliceaws iam list-access-keys --user-name johnaws iam list-attached-user-policies --user-name johnaws iam list-groupsaws iam list-policiesaws iam list-rolesaws iam list-usersaws iam list-usersaws lambda get-function-configuration --function-name my-functionaws lambda list-functionsaws logs describe-log-groupsaws logs filter-log-eventsaws logs tail /aws/lambda/my-function --followaws rds describe-db-instancesaws route53 list-hosted-zonesaws route53 list-resource-record-sets --hosted-zone-id Z1234567890ABCaws s3api get-bucket-policy --bucket my-bucket-nameaws sts get-caller-identityaws sts get-caller-identityaz account list -o tableaz account showaz account show --query '{name:name, tenant:tenantId, user:user.name}' -o tableaz account show --query '{name:name,id:id,tenant:tenantId,user:user.name}' -o tableaz account show -o tableaz account show -o tableaz acr repository list --name acrdemo12345 -o tableaz acr repository list --name acrdemo12345 -o tableaz aks get-credentials --resource-group rg-demo-eastus --name aks-demoaz aks get-credentials --resource-group rg-demo-eastus --name aks-demoaz aks get-credentials --resource-group rg-webapp-prod --name aks-webapp-prodaz aks get-credentials --resource-group rg-webapp-prod --name aks-webapp-prodaz aks show --resource-group rg-demo-eastus --name aks-demo --query '{version:kubernetesVersion,nodeRG:nodeResourceGroup}' -o tableaz aks upgrade --resource-group rg-demo-eastus --name aks-demo --kubernetes-version VERSIONaz cloud show -o tableaz consumption budget list -o tableaz disk list --query '[?managedBy==null].{name:name,rg:resourceGroup,sku:sku.name,size:diskSizeGb}' -o tableaz disk list -o tableaz functionapp function list --resource-group rg-demo-eastus --name func-demo-143it -o tableaz group list --query '[].{name:name,location:location}' -o tableaz group list -o jsonaz group list -o tableaz group list -o tableaz group show --name rg-demo-eastus -o jsonaz keyvault secret list --vault-name kv-demo-143it --query '[].name' -o tableaz keyvault secret show --vault-name kv-demo-143it --name demo-token --query '{name:name,enabled:attributes.enabled,updated:attributes.updated}' -o tableaz lock list -o tableaz monitor log-analytics workspace list -o tableaz monitor metrics list --resource RESOURCE_ID --metric "Percentage CPU"az monitor metrics list --resource RESOURCE_ID --metric Percentage CPU --interval PT5M -o tableaz monitor metrics list-definitions --resource RESOURCE_ID -o tableaz network nic list-effective-nsg --resource-group rg-demo-eastus --name NIC_NAME -o tableaz network nsg rule list --resource-group RESOURCE_GROUP --nsg-name NSG_NAME -o tableaz network vnet list -o tableaz network vnet list -o tableaz network vnet list -o tableaz network vnet list -o tableaz pipelines list -o tableaz policy assignment list --query '[].{name:name,scope:scope,policy:policyDefinitionId}' -o tableaz repos list -o tableaz resource list --resource-group rg-demo-eastus -o tableaz resource list --resource-group rg-demo-eastus -o tableaz resource list --tag environment=prod --query '[].{name:name,type:type,rg:resourceGroup}' -o tableaz resource show --ids RESOURCE_ID --query properties.provisioningState -o tsvaz role assignment list --assignee PRINCIPAL_ID -o tableaz role assignment list --assignee USER_OR_SERVICE_PRINCIPAL_ID -o tableaz storage account list -o tableaz storage account list -o tableaz storage blob listaz storage blob list --account-name storagedemo12345 --container-name artifacts --auth-mode login -o tableaz storage blob showaz versionaz vm get-instance-view --resource-group rg-demo-eastus --name vm-demo-01 --query instanceView.statuses -o tableaz vm list -d -o tableaz vm list -d -o tableconsul intention listconsul intention listcurl -I https://example.com/static/app.js | grep -iE 'cache-control|etag|age|cf-cache-status|x-cache'Disconnect-ExchangeOnline -Confirm:$falsedocker compose logsdocker compose logs --tail=100docker compose logs -f webdocker cp my-container:/app/logs/app.log ./local-logs/docker logs --tail 100 -f production-apidocker logs -f --timestamps my-appdocker logs container-iddocker logs container-iddocker logs container-iddocker logs container-namedocker logs my-containerdocker ps --filter "status=running" --filter "name=prod-*"docker ps -a --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"Get-EXOMailbox -ResultSize 10 -PropertySets MinimumGet-EXOMailbox -ResultSize 10 -PropertySets MinimumGet-EXOMailbox -ResultSize 25 -Properties ForwardingSmtpAddress,DeliverToMailboxAndForward | Select-Object DisplayName,ForwardingSmtpAddress,DeliverToMailboxAndForwardGet-EXOMailbox -ResultSize 25 -PropertySets MinimumGet-EXOMailboxPermission -Identity USER@DOMAIN.COM | Where-Object { -not $_.IsInherited }Get-MgApplication -All -Property Id,AppId,DisplayName,SignInAudienceGet-MgAuditLogDirectoryAudit -Top 20Get-MgAuditLogDirectoryAudit -Top 25Get-MgAuditLogDirectoryAudit -Top 50Get-MgAuditLogSignIn -Top 100 | Select-Object CreatedDateTime,UserPrincipalName,AppDisplayName,ConditionalAccessStatusGet-MgAuditLogSignIn -Top 100 | Select-Object CreatedDateTime,UserPrincipalName,AppDisplayName,ConditionalAccessStatus,StatusGet-MgAuditLogSignIn -Top 100 | Select-Object UserPrincipalName,ConditionalAccessStatus,StatusGet-MgAuditLogSignIn -Top 100 | Where-Object { $_.ClientAppUsed -match 'Other|IMAP|POP|SMTP' }Get-MgAuditLogSignIn -Top 20Get-MgAuditLogSignIn -Top 20 | Select-Object CreatedDateTime,UserPrincipalName,AppDisplayName,ConditionalAccessStatusGet-MgAuditLogSignIn -Top 50Get-MgAuditLogSignIn -Top 50Get-MgAuditLogSignIn -Top 50Get-MgAuditLogSignIn -Top 50 | Select-Object CreatedDateTime,UserPrincipalName,ConditionalAccessStatus,StatusGet-MgAuditLogSignIn -Top 50 | Where-Object { $_.UserPrincipalName -like '*break*' }Get-MgContextGet-MgContextGet-MgDirectoryRole -AllGet-MgDirectoryRole -AllGet-MgDirectoryRole -All | Select-Object Id,DisplayNameGet-MgDirectoryRole -All | Sort-Object DisplayNameGet-MgGroup -All -Property Id,DisplayName,GroupTypes,Visibility,SecurityEnabled,MailEnabled | Where-Object { $_.GroupTypes -contains 'Unified' }Get-MgGroup -All -Property Id,DisplayName,SecurityEnabled,MailEnabled,GroupTypesGet-MgGroup -All -Property Id,DisplayName,SecurityEnabled,MailEnabled,GroupTypesGet-MgGroup -Filter "securityEnabled eq true" -Property Id,DisplayNameGet-MgIdentityConditionalAccessPolicy -AllGet-MgIdentityConditionalAccessPolicy -AllGet-MgIdentityConditionalAccessPolicy -AllGet-MgIdentityConditionalAccessPolicy -AllGet-MgIdentityConditionalAccessPolicy -AllGet-MgIdentityConditionalAccessPolicy -All | Select-Object DisplayName,StateGet-MgIdentityConditionalAccessPolicy -All | Select-Object DisplayName,StateGet-MgIdentityConditionalAccessPolicy -All | Select-Object DisplayName,State,ModifiedDateTimeGet-MgIdentityConditionalAccessPolicy -All | Select-Object Id,DisplayName,State,CreatedDateTime,ModifiedDateTimeGet-MgIdentityConditionalAccessPolicy -All | Select-Object Id,DisplayName,State,ModifiedDateTimeGet-MgIdentityConditionalAccessPolicy -All | Where-Object { $_.DisplayName -match 'legacy|basic' }Get-MgIdentityConditionalAccessPolicy -All | Where-Object { $_.State -eq 'enabledForReportingButNotEnforced' }Get-MgIdentityConditionalAccessPolicy -ConditionalAccessPolicyId "00000000-0000-0000-0000-000000000000"Get-MgServicePrincipal -All -Property Id,AppId,DisplayName,AccountEnabledGet-MgUser -All -Property Id,DisplayName,UserPrincipalName,AccountEnabledGet-MgUser -All -Property Id,DisplayName,UserPrincipalName,AccountEnabled,UserTypeGet-MgUser -All -Property Id,DisplayName,UserPrincipalName,AccountEnabled,UserTypeGet-MgUser -All -Property Id,DisplayName,UserPrincipalName,AssignedLicensesGet-MgUser -All -Property Id,DisplayName,UserPrincipalName,UserType,AccountEnabledGet-MgUser -Filter "accountEnabled eq false" -Property Id,DisplayName,UserPrincipalName,AccountEnabledGet-MgUser -Filter "accountEnabled eq true" -Property Id,DisplayName,UserPrincipalNameGet-MgUser -Filter "accountEnabled eq true" -Property Id,DisplayName,UserPrincipalNameGet-MgUser -Filter "startsWith(displayName,'Break Glass')" -Property Id,DisplayName,UserPrincipalName,AccountEnabledGet-MgUser -Filter "startsWith(displayName,'Break Glass')" -Property Id,DisplayName,UserPrincipalName,AccountEnabledGet-MgUser -Filter "userType eq 'Guest'" -Property Id,DisplayName,UserPrincipalName,UserTypeGet-MgUser -Top 10 -Property Id,DisplayName,UserPrincipalName,AccountEnabledgit config --global alias.st statusgit config --listgit remote show origingit show v1.0.0git stash listgit stash listgit stash show -p stash@{0}git statusgit statusgit statusgit statusgit statusgit status --ignoredgit status -sgit status -sbgit tag -a v1.0.0 -m "Release version 1.0.0"helm listip addr showip addr showip addr show eth0ip link showip neigh showip neigh showip route get 203.0.113.10ip route get 8.8.8.8ip route get 8.8.8.8ip route showip route showip route showip route show defaultip route show table mainistioctl proxy-statusistioctl proxy-statuskubectl auth can-i --list --namespace productionkubectl auth can-i --list -n productionkubectl auth can-i get pods --as system:serviceaccount:production:webapp -n productionkubectl config get-contextskubectl config get-contextskubectl cp my-pod:/logs/app.log ./app.log -c nginxkubectl describe deployment nginxkubectl describe deployment nginxkubectl describe endpoints nginx-servicekubectl describe node worker-1kubectl describe nodeskubectl describe pod <name>kubectl describe pod <name>kubectl describe pod <pod-name>kubectl describe pod <pod-name>kubectl describe pod <pod-name>kubectl describe pod my-podkubectl describe pod my-pod -n productionkubectl describe pod pod-namekubectl describe pod pod-namekubectl describe pod pod-namekubectl describe pod pod-namekubectl describe pod pod-name | grep -A 5 "Requests"kubectl describe pod pod-name | grep Imagekubectl describe service <service-name>kubectl describe service my-servicekubectl exec my-pod -- su - appuser -c "whoami"kubectl get --raw /healthzkubectl get $resource -n $NAMESPACE -o yaml > $BACKUP_DIR/$resource.yamlkubectl get allkubectl get allkubectl get allkubectl get all --all-namespaces -o yaml > cluster-backup.yamlkubectl get all -n $NAMESPACE -o yaml > $BACKUP_DIR/all-resources.yamlkubectl get endpointskubectl get endpoints -Akubectl get endpoints <service-name>kubectl get endpoints <service-name>kubectl get endpoints nginx-servicekubectl get events --field-selector involvedObject.name=pod-namekubectl get events --sort-by=.metadata.creationTimestampkubectl get events --sort-by=.metadata.creationTimestampkubectl get events --sort-by='.lastTimestamp'kubectl get events --sort-by='.lastTimestamp'kubectl get events -A --sort-by=.lastTimestamp > incident-k8s-events.txtkubectl get events -n production --watchkubectl get ingress -Akubectl get ingress -Akubectl get ingress -n webappkubectl get jobskubectl get namespaceskubectl get networkpolicy -Akubectl get networkpolicy -Akubectl get networkpolicy -Akubectl get networkpolicy -A -o yaml > evidence/$(date +%Y-%m-%d)/networkpolicies.yamlkubectl get nskubectl get pod my-pod -o jsonkubectl get pod my-pod -o yamlkubectl get pod web-abc123 -n production -o jsonpath='{.spec.containers[*].name}'kubectl get podskubectl get podskubectl get pods --all-namespaceskubectl get pods --show-labelskubectl get pods --sort-by=.metadata.creationTimestampkubectl get pods -Akubectl get pods -Akubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}{"/"}{.metadata.name}{" user="}{.spec.securityContext.runAsUser}{"\n"}{end}'kubectl get pods -l app=nginxkubectl get pods -n consulkubectl get pods -n istio-systemkubectl get pods -n istio-systemkubectl get pods -n linkerdkubectl get pods -n production -o jsonpath='{range .items[*]}{.metadata.name}{" containers="}{range .spec.containers[*]}{.name}{","}{end}{"\n"}{end}'kubectl get pods -n webappkubectl get pods -o custom-columns=NAME:.metadata.name,STATUS:.status.phasekubectl get pods -o widekubectl get pods -wkubectl get rolebinding,role -n $NAMESPACE -o yaml > $BACKUP_DIR/rbac.yamlkubectl get secretskubectl get svckubectl get svckubectl get svc -Akubectl get svc -Akubectl logs -f <pod>