From 4682af7c3a6ad0f44c054d7c4e632d4cc0191974 Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Thu, 28 Dec 2017 17:28:43 +0100 Subject: [PATCH] Add some tags for ppa related tasks --- Manual.org | 10 +++++++++- roles/collect-facts/tasks/main.yml | 2 ++ roles/nvidia-387/tasks/main.yml | 4 ++++ roles/yavdr-common/tasks/configure_apt.yml | 2 ++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Manual.org b/Manual.org index e9de0d1..3791d36 100644 --- a/Manual.org +++ b/Manual.org @@ -151,7 +151,7 @@ apt-get update apt-get -y install --no-install-recommends ansible # TODO: run ansible on local host -ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags=install +ansible-playbook yavdr07.yml -b -i 'localhost_inventory' --connection=local --tags=all #+END_SRC * Playbooks ** yavdr07.yml @@ -345,6 +345,8 @@ install nvidia-387 from ppa:graphics-drivers/ppa repo: 'ppa:graphics-drivers/ppa' state: present update_cache: yes + tags: + - ppa - name: install nvidia-387 and other required packages apt: @@ -354,6 +356,8 @@ install nvidia-387 from ppa:graphics-drivers/ppa with_items: - nvidia-387 - nvidia-settings + tags: + - packages #+END_SRC ** yavdr-common This role is used to set up a basic yaVDR installation. It creates the directories, installs the vdr and other useful packages. @@ -446,6 +450,8 @@ yavdr-common executes the following tasks: state: present update_cache: yes with_items: '{{ repositories }}' + tags: + - ppa - name: run apt-get dist-upgrade apt: @@ -572,6 +578,8 @@ APT::Install-Suggests "0"; modules: True gpus: True acpi_power_modes: True + tags: + - always - debug: var: '{{ item }}' diff --git a/roles/collect-facts/tasks/main.yml b/roles/collect-facts/tasks/main.yml index 99497bd..8c8fb06 100644 --- a/roles/collect-facts/tasks/main.yml +++ b/roles/collect-facts/tasks/main.yml @@ -5,6 +5,8 @@ modules: True gpus: True acpi_power_modes: True + tags: + - always - debug: var: '{{ item }}' diff --git a/roles/nvidia-387/tasks/main.yml b/roles/nvidia-387/tasks/main.yml index f5df11f..ba79710 100644 --- a/roles/nvidia-387/tasks/main.yml +++ b/roles/nvidia-387/tasks/main.yml @@ -5,6 +5,8 @@ repo: 'ppa:graphics-drivers/ppa' state: present update_cache: yes + tags: + - ppa - name: install nvidia-387 and other required packages apt: @@ -14,3 +16,5 @@ with_items: - nvidia-387 - nvidia-settings + tags: + - packages diff --git a/roles/yavdr-common/tasks/configure_apt.yml b/roles/yavdr-common/tasks/configure_apt.yml index f4a4748..bb9a5be 100644 --- a/roles/yavdr-common/tasks/configure_apt.yml +++ b/roles/yavdr-common/tasks/configure_apt.yml @@ -10,6 +10,8 @@ state: present update_cache: yes with_items: '{{ repositories }}' + tags: + - ppa - name: run apt-get dist-upgrade apt: