From ff877f565efb1b50c7b9a74819ec87d8eafbdc57 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 2 Dec 2021 15:24:59 -0500 Subject: [PATCH] dhcp-server: Add a packages tag so I can skip the task Takes forever on store01 Signed-off-by: David Galloway --- roles/dhcp-server/README.rst | 8 ++++++++ roles/dhcp-server/tasks/main.yml | 1 + 2 files changed, 9 insertions(+) diff --git a/roles/dhcp-server/README.rst b/roles/dhcp-server/README.rst index a3f6762..5e9688f 100644 --- a/roles/dhcp-server/README.rst +++ b/roles/dhcp-server/README.rst @@ -97,5 +97,13 @@ This role basically has two required and two optional variables: | ``dhcp_option_hostname: False`` | Should this host get ``option host-name "{{ ansible_host }}";`` defined in its host declaration? Defaults to False. Override in secrets repo per host/group. | +---------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +Tags +++++ + +Available tags are listed below: + +packages + Run (or skip) package install/update tasks + .. _docs: https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable .. _dhcpd: https://linux.die.net/man/8/dhcpd diff --git a/roles/dhcp-server/tasks/main.yml b/roles/dhcp-server/tasks/main.yml index 9727165..ef384f1 100644 --- a/roles/dhcp-server/tasks/main.yml +++ b/roles/dhcp-server/tasks/main.yml @@ -4,6 +4,7 @@ name: dhcp state: latest register: dhcp_yum_transaction + tags: packages - name: Check for firewalld command: firewall-cmd --state -- 2.39.5