O.K.
O.K.

Reputation: 95

how to not display skipped hosts/tasks?

I have many playbooks and I don't have access the where Ansible is installed. I can write my playbooks locally on my laptop then I push them to a repo and I can run them via Jenkins. I can't control or change e.g. ansible.cfg or so. Is there a way to manipulate the ansible default stdout callback plugin per playbook without accessing the ansible host itself?

Upvotes: 0

Views: 2963

Answers (1)

malpanez
malpanez

Reputation: 290

Actually it is, you can use Environmental variable for this: check documentation

ANSIBLE_DISPLAY_SKIPPED_HOSTS=yes ansible-playbook main.yml

But for obvious reasons (It's deprecated) it's better to use the ansible.cfg option for this.

[defaults]
display_skipped_hosts = False

Upvotes: 2

Related Questions