Ah yes, I misinterpreted "if a password/password file is presented" as the vaulted file being present/absent not the vault password/password file. Sorry.
On Fri, Sep 12, 2014 at 2:54 PM, Michael DeHaan <[email protected]> wrote: > Well that would not import it if that first file were not present, yes, > but most likely it would be present. > > > > On Fri, Sep 12, 2014 at 5:53 PM, Shaunak Kashyap <[email protected]> > wrote: > >> You could make it work like so: >> https://gist.github.com/ycombinator/21dd0ca3c0ee9472f64d >> >> >> On Fri, Sep 12, 2014 at 2:12 PM, Michael DeHaan <[email protected]> >> wrote: >> >>> Yeah, this is presently not possible unfortunately. >>> >>> I think this could be potentially confusing unless it threw a warning >>> when attempting to read the file - because you might not know why a >>> variable would be undefined. >>> >>> If we did this, it would need to be a config setting, default off, in >>> ansible.cfg. >>> >>> I'm not yet sure that we need to, but one thing that is not possible is >>> to prompt at load time, because you might be halfway into the playbook run >>> -- this would make it hard to run ansible via expect type scripts and it >>> would be unpredictable when a prompt might come up. >>> >>> >>> >>> >>> >>> On Fri, Sep 12, 2014 at 5:02 PM, DomaNitro <[email protected]> >>> wrote: >>> >>>> Hey, >>>> >>>> I was wondering if its possible to do optional import of vault >>>> encrypted files. i.e. if a password/password file is presented the >>>> encrypted file will be included. Else the file will be ignored. >>>> >>>> Thanks >>>> >>>> -- >>>> 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/00840cc1-990a-4b2e-8c5c-aa0fd0656538%40googlegroups.com >>>> <https://groups.google.com/d/msgid/ansible-project/00840cc1-990a-4b2e-8c5c-aa0fd0656538%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> 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/CA%2BnsWgx%2ByaMF3u53L%2BBd%3Dor4%2BfGaAD9as7fyB0bJ-idPVZZy%3Dw%40mail.gmail.com >>> <https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgx%2ByaMF3u53L%2BBd%3Dor4%2BfGaAD9as7fyB0bJ-idPVZZy%3Dw%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> "Now the hardness of this world slowly grinds your dreams away / Makin' a >> fool's joke out of the promises we make" --- Bruce Springsteen, "Blood >> Brothers" >> >> -- >> 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/CAMiVsf%2BkvtWX7nVq6U-1WRqHLgiMgbuYUK6ksRA2omrvNDDXGw%40mail.gmail.com >> <https://groups.google.com/d/msgid/ansible-project/CAMiVsf%2BkvtWX7nVq6U-1WRqHLgiMgbuYUK6ksRA2omrvNDDXGw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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/CA%2BnsWgz_qG0%2BK0rsCTrFy9SkptJL5oXXAY-mn6uc_UKCSmsJKA%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgz_qG0%2BK0rsCTrFy9SkptJL5oXXAY-mn6uc_UKCSmsJKA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- "Now the hardness of this world slowly grinds your dreams away / Makin' a fool's joke out of the promises we make" --- Bruce Springsteen, "Blood Brothers" -- 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/CAMiVsf%2BSUSKPU_tp1hWKC8kcKBx-s4%2BH%3DMzwZ1TVWmX7GtHoeQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
