Re: non idempotent tasks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 30 Jun 2014 19:05:52 +0200
Pierre-Yves Chibon <pingou@xxxxxxxxxxxx> wrote:

> These are "normal".
> Both application have an admin DB user and a regular DB user. What
> the playbook does is:
> - set up pkgdb/nuancier with the admin DB user
> - create the DB or create new tables, or nothing if it is all already
> there
> - update the configuration files to use the regular DB user so that
> this is the under-priviledge user used by the application in normal
> condition
> 
> I guess we could:
> - Drop step 1 and 2
> or
> - Make step 1 and 2 rely on a CLI argument

You could use the 'creates' augument possibly and make it make a file ?

ie, 'creates=/etc/nuancer/database-setup' 

it gets created the first time, and skipped after. If you need to
re-run it you manually rm the file and it runs it next playbook run?

kevin

Attachment: signature.asc
Description: PGP signature

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux