LukeShortCloud / ansible_role_fedora_kernel_lts

An Ansible role for automating the build of the LTS Linux kernel RPMs for Fedora.
GNU General Public License v3.0
1 stars 0 forks source link

Add Tag to Skip the Steps that Require sudo #2

Closed LukeShortCloud closed 6 years ago

LukeShortCloud commented 6 years ago

A few tasks involve using "sudo" to install system packages. If this Playbook has already run on a given host once, then these steps are technically no longer relevant. For helping increase the completion time of the role (which can already take a long time due to the kernel compilation) there should be an Ansible tag that can specify to skip those steps.

tags:
  - sudo
$ ansible-playbook --skip-tags skip_sudo site.yml