From 762b8de65fbe23b0ee788bde745c4fcdcc417938 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 2 Feb 2018 11:07:29 +0100 Subject: [PATCH] library/roles/deb-set-hostname/tasks/main.yml: Add a new tag. --- deb-set-hostname/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deb-set-hostname/tasks/main.yml b/deb-set-hostname/tasks/main.yml index 7eb5c883..89f3daef 100644 --- a/deb-set-hostname/tasks/main.yml +++ b/deb-set-hostname/tasks/main.yml @@ -2,9 +2,9 @@ - name: Set the hostname hostname: name={{ hostname }} when: hostname is defined - tags: bootstrap + tags: [ 'bootstrap', 'set_hostname' ] - name: Add the hostname to /etc/hosts shell: grep -v {{ ansible_default_ipv4.address }} /etc/hosts > /etc/hosts.tmp ; echo "{{ ansible_default_ipv4.address }} {{ hostname }} {{ ansible_hostname }}" >> /etc/hosts.tmp ; /bin/mv /etc/hosts.tmp /etc/hosts when: hostname is defined - tags: bootstrap + tags: [ 'bootstrap', 'set_hostname' ]