diff --git a/tasks/main.yml b/tasks/main.yml index 0989b57b3fcc4401fa24c828e4de2580098e8d81..a57f0ffd8aa11066d431e2ddbec0bcdfcd2cb40b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -9,16 +9,16 @@ - block: - - name: Install Go Lang - apt: - pkg: golang-go - state: present - update_cache: yes + - name: Install Go Lang + apt: + pkg: golang-go + state: present + update_cache: yes - - name: Remember that this role had been run - set_fact: - role_golang_completed: yes - tags: - - always + - name: Remember that this role had been run + set_fact: + role_golang_completed: yes + tags: + - always when: not excluded_roles or "golang" not in excluded_roles and role_golang_completed is not defined