Looking for a little advise… new to ansible …
Here is the task …
which is in playbook from
github … ansible-for-devops.
`
tasks:
TOMCAT 7
- name: Install Tomcat 7.
apt: “pkg={{ item }} state=installed”
with_items: - tomcat7
- tomcat7-admin
`
Looking for a little advise… new to ansible …
Here is the task …
which is in playbook from
github … ansible-for-devops.
`
tasks:
`
Are you setting sudo to true somewhere else. It's hard to see when
you've just shown a portion of playbook. If not and you just need sudo
for this task, then you can set it per-task like so:
tasks:
# TOMCAT 7 ###################################################################
- name: Install Tomcat 7.
apt: "pkg={{ item }} state=installed"
sudo: true
with_items:
- tomcat7
- tomcat7-admin