Tag Archives: register

Use of runtime variables to save into another variable using register in Ansible

Another major use of variables is running a command and using the result of that command to save the result into a variable   – hosts: all tasks: – name: Ansible register variable basic example shell: “find *.txt” args: chdir: “/Users/mdtutorials2/Documents/Ansible” register: find_output – debug: var: find_output # – hosts: all tasks: – name: Ansible… Read More »