Professional Documents
Culture Documents
Ansible Try It Out Loops
Ansible Try It Out Loops
Ansible Try It Out Loops
---
0 hosts: localhost
become: yes
tasks:
with_items:
- apache2
- sqlite3
- git
Error Below:
---
^ here
---
^ here
ansible
Share Edit Follow Flag edited Sep 8 '20 at 17:39 asked Sep 8 '20 at 17:37
larsks Sravan Kumar
197k 34 300 306 1 1
1 It looks like you may be working from some outdated documentation (playbooks no longer use the
https://stackoverflow.com/questions/63798997/ansible-try-it-out-loops-apache2-sqlite3-git-install 1/2
6/29/2021 Ansible Try it out Loops - apache2, sqlite3, git install - Stack Overflow
used the apt module instead of action. Just make sure that you Ansibe user have privileged to
install apt packages on your target system.
0
---
hosts: localhost
become: yes
tasks:
apt:
name: "{{item}}"
state: present
with_items:
- apache2
- sqlite3
- git
https://stackoverflow.com/questions/63798997/ansible-try-it-out-loops-apache2-sqlite3-git-install 2/2