
On Oct 14, 2022, at 3:16 PM, Josh K <jo...@halloapp.com> wrote:
I have a playbook that depends on knowing where a certain git repository is on the local machine. All of our developers have this repo somewhere, but no assumptions can be made about the name of the dir or its location on each dev's computer.
What I want is this: some default variable that stores where this repo is (DIR) after a user specifies it once. I've managed to define what I want in a finite state machine:
<Screen Shot 2022-10-14 at 12.09.30 PM.png>
Is there an efficient way to implement this in Ansible?
Without a better method, implementing this would require a lot of tasks just dedicated to checking states, which seems tedious. I'm also not sure how I would loop over the "is DIR valid" <---> "prompt" sequence.
--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5eccb8ac-57b4-400b-89d8-b4e54f07c52an%40googlegroups.com.
For instance, let's say we needed the user to enter a password, but this password doesn't change so we want the user to only have to enter it once and the playbook "remembers" it for future runs.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d91c2446-c6bf-4408-962d-1de975bf26f1n%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/I3coNM0Gq5U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/92770e0e-cfb8-4b8c-bbd1-cd1af1b30910n%40googlegroups.com.