use list with apt directly (instead of with_items)
This commit is contained in:
parent
fc458e5c05
commit
7f0179c000
9 changed files with 28 additions and 34 deletions
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: install sudo
|
||||
package:
|
||||
apt:
|
||||
name: sudo
|
||||
state: present
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: install tools for lvm thin pools
|
||||
package:
|
||||
apt:
|
||||
name: thin-provisioning-tools
|
||||
|
||||
- name: copy docker-setup script
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
---
|
||||
- name: install dependencies
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
name:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
state: present
|
||||
with_items:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
|
||||
- name: Add apt key
|
||||
apt_key:
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
- name: install firmware
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
name: "{{ hardware.firmware }}"
|
||||
state: present
|
||||
with_items: "{{ hardware.firmware }}"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: install python-usb
|
||||
package:
|
||||
apt:
|
||||
name: python-usb
|
||||
state: present
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
---
|
||||
- name: install dependencies
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
name:
|
||||
- grub2
|
||||
- rsync
|
||||
state: present
|
||||
with_items:
|
||||
- grub2
|
||||
- rsync
|
||||
|
||||
- name: copy labsync-install-localboot script
|
||||
copy:
|
||||
|
|
|
|||
|
|
@ -2,10 +2,9 @@
|
|||
- block:
|
||||
- name: install network-manager
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
name:
|
||||
- network-manager
|
||||
- network-manager-gnome
|
||||
state: present
|
||||
with_items:
|
||||
- network-manager
|
||||
- network-manager-gnome
|
||||
tags:
|
||||
- network-manager
|
||||
|
|
|
|||
|
|
@ -1,17 +1,16 @@
|
|||
---
|
||||
- name: install debian packages
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
name:
|
||||
- bash
|
||||
- less
|
||||
- htop
|
||||
- systemd-sysv
|
||||
- vim-nox
|
||||
- pciutils
|
||||
- usbutils
|
||||
- strace
|
||||
- net-tools
|
||||
- lshw
|
||||
state: present
|
||||
update_cache: yes
|
||||
with_items:
|
||||
- bash
|
||||
- less
|
||||
- htop
|
||||
- systemd-sysv
|
||||
- vim-nox
|
||||
- pciutils
|
||||
- usbutils
|
||||
- strace
|
||||
- net-tools
|
||||
- lshw
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
---
|
||||
- name: install lightdm
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
name:
|
||||
- lightdm
|
||||
- lightdm-gtk-greeter
|
||||
- fonts-roboto
|
||||
state: present
|
||||
with_items:
|
||||
- lightdm
|
||||
- lightdm-gtk-greeter
|
||||
- fonts-roboto
|
||||
|
||||
- name: get background image for lightdm
|
||||
copy:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue