top of page
  • Writer's pictureretesdurshizebtaum

Ansible-for-loop-shell-command

Example 3: Execute a Shell Script with Shell command — Unlike the Ansible command module, Ansible Shell would accept any highly ...












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





1 view0 comments

Recent Posts

See All
bottom of page