top of page

Ansible-for-loop-shell-command

Writer's picture: retesdurshizebtaumretesdurshizebtaum
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

Comments


Subscribe for Updates & Offers

Ask us anything! We’re here to answer any questions you have. 

 

Email: info@mysite.com

 

Follow Us

© Be my guest in Rio. Proudly created with Wix.com

  • Grey TripAdvisor Icon
  • Grey Facebook Icon
  • Grey Instagram Icon
bottom of page