1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Print debug output during tests.

This commit is contained in:
Felix Fontein 2022-06-14 07:35:29 +02:00
parent d3ebdd2874
commit 6fe9cf11f1
4 changed files with 22 additions and 1 deletions

View file

@ -32,6 +32,15 @@
that:
- cmd.stdout == "dummy2"
- name: Get dummymain alternatives output
command:
argv: '{{ alternatives_command }} --display dummymain'
register: result
- name: Print result
debug:
var: result.stdout_lines
- name: Subcommands are not removed if not specified
alternatives:
name: dummymain
@ -75,4 +84,13 @@
assert:
that:
- cmd.rc == 2
- '"No such file" in cmd.msg'
- '"No such file" in cmd.msg'
- name: Get dummymain alternatives output
command:
argv: '{{ alternatives_command }} --display dummymain'
register: result
- name: Print result
debug:
var: result.stdout_lines

View file

@ -1,2 +1,3 @@
---
alternatives_dir: /var/lib/dpkg/alternatives/
alternatives_command: update-alternatives

View file

@ -1,2 +1,3 @@
---
alternatives_dir: /var/lib/rpm/alternatives/
alternatives_command: update-alternatives

View file

@ -1,2 +1,3 @@
---
alternatives_dir: /var/lib/alternatives/
alternatives_command: update-alternatives