I have a role which is just a meta playbook for installing many packages.
I only want these to run once during an ansible run since interacting with
the package manager is slow.
I thought I'd register a variable and check it, however I'm getting an
error.
TASK: [feature/zypper | remove non-seas repos]
********************************
fatal: [tr808.seas.upenn.edu] => error while evaluating conditional: (
common_has_executed == 'false')
FATAL: all hosts have already failed -- aborting
PLAY RECAP
********************************************************************
to retry, use: --limit @/root/site.retry
tr808.seas.upenn.edu : ok=1 changed=0 unreachable=1 failed=0
Here the relevant files:
common/tasks/main.yml
---
- name: log common status
set_fact: common_has_executed = 'true'
common/meta/main.yml
---
allow_duplicates: no
dependencies:
- { role: feature/rc.firewall, when: ( common_has_executed == 'false') }
- { role: feature/perl, when: ( common_has_executed == 'false') }
- { role: feature/python, when: ( common_has_executed == 'false') }
- { role: feature/ruby, when: ( common_has_executed is == 'false') }
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/13ec901c-d926-4c2f-b78d-d57777d96ec3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.