On Mon, 17 Feb 2020 14:47:19 +0100 Dick Visser <dick.vis...@geant.org> wrote:
> tasks: > - name: find out sysctl values > shell: sysctl {{ params | join(' ') }} > register: sysctl_out Optionally ask sysctl to print values only and set dictionary of the parameters and values. For example - command: "sysctl -n {{ params | join(' ') }}" register: sysctl_out - set_fact: sysctl_dict: "{{ dict(params|zip(sysctl_out.stdout_lines)) }}" HTH, -vlado -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20200217153141.134f2357%40gmail.com.
pgpo1wStQBdkL.pgp
Description: OpenPGP digital signature