Friday, July 3, 2020

Ansible debugging shortcuts

How to use the ignore_errors: yes in the task ?

- name: Get resource group information using tags
azure_rm_resourcegroup_info:
list_resources: no
tags: "kaushik_rg"
register: resourcegroup_info
ignore_errors: yes


How to execute specific task inside the role/playbook ?

ansible-playbook playbook.yml --start-at-task="install packages"

what is install packages in the above command ?

it is the name of the task 


example : 

- name: install packages


No comments:

Post a Comment