Thanks Jakov.

   That worked well for me.  It turns out my service was running because my 
init replacement, runit, automatically starts the service by default.  Once 
I switched this off and leveraged the templates, this became easy.

Cheers,

JD

On Friday, February 5, 2016 at 7:42:00 PM UTC-8, JD Rosensweig wrote:
>
> As part of my Ansible playbook I down and install an RPM from an internal 
> repository. This RPM comes packaged with a bunch of configuration. For most 
> of my machines I don't need to change this configuration. However for a 
> small subset, defined by an ansible group, I need to modify a few of the 
> configuration fields.
>
>
> I'm assuming I would need to do something like so:
>
>    1. Wait till my RPM is installed and "running"
>    2. Stop the service
>    3. Modify the configuration file somehow? Use a when clause to limit 
>    it to the group I want to modify.
>    4. Restart the service
>    
> Or possibly there is a better way to achieve to do this. Can anyone out 
> there suggest how I could achieve my general goal?
>

-- 
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/b61b12fc-d96c-473e-87e7-4ebb9ae99a0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to