1 2 3 4 5 6 7 8 9 10 11 12 13 14
- name: Install requirements package: name="{{ item }}" state=present with_items: - lvm2 - name: Install nvidia docker package: name="nvidia-docker2" state=present notify: - restart docker - name: Install additional packages package: name="{{ item }}" state=present with_items: - docker-compose