在单个任务中安装多个包
- name: Installing Oracle Java and support libs
apt: pkg={{ item }}
with_items:
- python-software-properties
- oracle-java8-installer
- oracle-java8-set-default
- libjna-java
- name: Installing Oracle Java and support libs
apt: pkg={{ item }}
with_items:
- python-software-properties
- oracle-java8-installer
- oracle-java8-set-default
- libjna-java