If that’s the case why not create a survey that these guys can fill out. The fields are mapped to extra vars and these can then be supplanted as parameters into the code. (Using the template module )
Get Outlook for iOS<https://aka.ms/o0ukef> ________________________________ From: [email protected] <[email protected]> on behalf of Antony Stone <[email protected]> Sent: Friday, August 6, 2021 12:51:53 AM To: [email protected] <[email protected]> Subject: Re: [ansible-project] Infrastructure as Code vs Self-Service On Thursday 05 August 2021 at 14:27:00, 'Andreas Hubert' via Ansible Project wrote: > Dear Ansible Community, > > having your Infrastructure in Code, means you manage the code with a > version control system (e.g. git). I have a case where I also configure the > application we deploy with Ansible with various XML configuration files. > > Parts of this application configuration should not be touched by others, > only by my code. But other parts of it should also be configured by others > as well, outside of my code, to provide them with Self-Service. I understand so far. > So parameters should come from an outside source and not be under > version control. I don't get this bit - just because things are external, why would they not be version-controlled? > In Ansible this could come from a dynamic inventory. It could, yes, but why not simply give these "others" who need Self-Service write access to selected parts of the git repository, and then get ansible to pull everything in from a version-controlled and documented source? I would in fact suggest that it is *more* important to have these Self-Service inputs under a version control system, because sooner or later someone is going to say "why is this machine doing that?" and you can point to the update they made to the configuration which made it do it. If ansible just pulls in non-versioned XML files from somewhere, you have no way of telling when a certain change got made, by whom (or why), nor even what it was changed from. Regards, Antony. -- "Life is just a lot better if you feel you're having 10 [small] wins a day rather than a [big] win every 10 years or so." - Chris Hadfield, former skiing (and ski racing) instructor Please reply to the list; please *don't* CC me. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/SY6P282MB31967A206C0CAAD8622796B6ADF29%40SY6P282MB3196.AUSP282.PROD.OUTLOOK.COM.
