- shell:
cmd: do_something && touch /etc/do_something/done
creates: /etc/do_something_done
Easy peasy. This was recommended before, although no one explicitly wrote
it out.
Otherwise, do a task before, to actually evaluate whether you need to run
the command in the first place, instead of relying on the existence of a
file.
On Tue, Nov 8, 2022 at 11:17 AM Philipp Ewald <[email protected]>
wrote:
> :)
>
> try this to explain new employees :D you need to place a file there,
> otherwise the command will be execute again :DDDDD
>
> for me this is a bug
>
> but ok i will do it with extra steps.... if everyone else is happy with
> that solution, i'm fine with that
>
> Am 08.11.22 um 18:01 schrieb Tom Davison:
> > The ansible file module?
> >
> >
> https://docs.ansible.com/ansible/latest/collections/ansible/builtin/file_module.html
> >
> > On Tue, Nov 8, 2022 at 10:55 Philipp Ewald <[email protected]>
> > wrote:
> >
> >> I dont want to create a script placing files or removing files.... just
> to
> >> run one command...
> >>
> >> any ideas?
> >>
> >>
> >> --
> >> Philipp Ewald
> >> Administrator
> >>
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Ansible Development" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >> email to [email protected].
> >> To view this discussion on the web visit
> >>
> https://groups.google.com/d/msgid/ansible-devel/fee1826e-998f-537c-598e-42fb41ffc01c%40digionline.de
> >> .
> >>
> >
>
> --
> Philipp Ewald
> Administrator
>
> DigiOnline GmbH, Probsteigasse 15 - 19, 50670 Köln
> E-Mail: [email protected]
>
> AG Köln HRB 27711, St.-Nr. 5215 5811 0640
> Geschäftsführer: Werner Grafenhain
>
> Informationen zum Datenschutz: www.digionline.de/ds
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-devel/5bb08ae1-bb3e-c76f-8358-7d572b717168%40digionline.de
> .
>
--
Matt Martz
@sivel
sivel.net
--
You received this message because you are subscribed to the Google Groups
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-devel/CAD8N0v88oKdYQ71WM0aVVADa8%3D13Pj%2BLrmc5ERz2uBkZo16dmQ%40mail.gmail.com.