docker run --rm $IMAGE command_generator_vars aws_get_aoc_version
$ docker run --rm $IMAGE command_generator_vars aws_get_aoc_version
Copy to ClipboardCopied!Toggle word wrapToggle overflow
生成以下输出:
===============================================
Playbook: aws_get_aoc_version
Description: Get the current Ansible on Clouds version.
-----------------------------------------------
Get the current Ansible on Clouds version.
-----------------------------------------------
Command generator template:
docker run --rm $IMAGE command_generator aws_get_aoc_version [--ansible-config ansible_config_path>] -d <deployment_name> -c <cloud_credentials_path> --extra-vars 'aws_region=<aws_region> aws_ssm_bucket_name=<aws_ssm_bucket_name>'
===============================================
===============================================
Playbook: aws_get_aoc_version
Description: Get the current Ansible on Clouds version.
-----------------------------------------------
Get the current Ansible on Clouds version.
-----------------------------------------------
Command generator template:
docker run --rm $IMAGE command_generator aws_get_aoc_version [--ansible-config ansible_config_path>] -d <deployment_name> -c <cloud_credentials_path> --extra-vars 'aws_region=<aws_region> aws_ssm_bucket_name=<aws_ssm_bucket_name>'
===============================================
Copy to ClipboardCopied!Toggle word wrapToggle overflow
通过替换参数启动这个命令会生成新命令来启动和输出:
...
TASK [Print version] ***********************************************************
ok: [localhost] => {
"msg": "The AOC version is 2.4.20230531-00"
}
PLAY RECAP *********************************************************************
localhost : ok=5 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
...
TASK [Print version] ***********************************************************
ok: [localhost] => {
"msg": "The AOC version is 2.4.20230531-00"
}
PLAY RECAP *********************************************************************
localhost : ok=5 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Copy to ClipboardCopied!Toggle word wrapToggle overflow
aws_remove_labels
此 playbook 从部署中删除标签。
docker run --rm $IMAGE command_generator_vars aws_remove_labels
$ docker run --rm $IMAGE command_generator_vars aws_remove_labels
Copy to ClipboardCopied!Toggle word wrapToggle overflow
生成以下输出:
===============================================
Playbook: aws_remove_labels
Description: This playbook removes labels from the deployment.
-----------------------------------------------
Remove labels from the Ansible Automation Platform from AWS Marketplace deployment.
-----------------------------------------------
Command generator template:
docker run --rm $IMAGE command_generator aws_remove_labels -d <deployment_name> -c <cloud_credentials_path> --extra-vars 'aws_region=<aws_region> aws_labels=<aws_labels>'
===============================================
===============================================
Playbook: aws_remove_labels
Description: This playbook removes labels from the deployment.
-----------------------------------------------
Remove labels from the Ansible Automation Platform from AWS Marketplace deployment.
-----------------------------------------------
Command generator template:
docker run --rm $IMAGE command_generator aws_remove_labels -d <deployment_name> -c <cloud_credentials_path> --extra-vars 'aws_region=<aws_region> aws_labels=<aws_labels>'
===============================================
Copy to ClipboardCopied!Toggle word wrapToggle overflow