On 27.05.2019 22:28, Veera wrote:
> For any standard "var.stdout" only 8 lines are printing . Any way
> to
> increase the std.output lines above 8 lines
Can't confirm this behavior with Ansible 2.8.0
test.yml
---
- hosts: localhost
gather_facts: no
become: no
tasks:
- shell: for i in `seq 1 10`; do echo $i; done
register: result
- debug: var=result.stdout_lines
$ ansible-playbook test.yml
PLAY [localhost] ********************
TASK [shell] ************************
changed: [localhost]
TASK [debug] ************************
ok: [localhost] => {
"result.stdout_lines": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10"
]
}
--
Kai Stian Olstad