I'm wrining ansible playbook yml file. I have a "ansible.builtin.command" line and I…
- User
I'm wrining ansible playbook yml file. I have a "ansible.builtin.command" line and I want to run the following 2 commands there: az webapp config appsettings list --resource-group <resource_group> --name <app_name> > appsettings.json az webapp config appsettings set --resource-group <resource_group> --name <app_name> --slot staging --settings @appsettings.json. Can you please help me to do that.
Assistant
Here is how you can run those two az CLI commands in one ansible.builtin.command task:
- name: Get and set app settings ansible.builtin.command: > az webapp config appsettings list --resource-group <resource_group> --name <app_name> > appsettings.json && az webapp config appsettings set --resource-group <resource_group> --name <app_name> --slot staging --settings @appsettings.json
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.