Example 3: Execute a Shell Script with Shell command — Unlike the Ansible command module, Ansible Shell would accept any highly ...
DOWNLOAD: https://byltly.com/2fa3tw
DOWNLOAD: https://byltly.com/2fa3tw
ansible-for-loop-shell-command
name: Get home files with names from 1 to 4 shell: "ls /home/ansible/{{ item }}" ignore_errors: ... name: Get username command: mysql -u {{ username }} -p {{ mysql_root_password }} ... We can use loop.index if we want to create the code above: 939c2ea5af
Commentaires