Hi to all...

I've created set of templates which I use to deploy some application config 
files (between 20-30 files, depends on environment) to all my servers 
(about 100 servers).

>From ansible server I deploy every changed config file.

---
- name: Generate configuration files
  template:
     src={{ item.1 }}.j2
     dest={{item.0.HOME_DIR}}/{{ item.1 }}
     backup=yes
  with_subelements:
    - "{{MEMBERS_LIST}}"
    - config_files


So after I deploy that config file, I would like to commit it to CVS. Any 
idea how to do that.
My idea is to check out CVS structure to ansible server, and every time I 
run this play to check out all committed config files, and in that 
structure where are current in use config files  checked out from CVS 
deploy newly generated config files. 
But how to achieve that?
 If I add new play in upper playbook then config files are copied to 
the remote server, and I would like to copy that to ansible server from 
where I run this play.

Or is it possible somehow notify (with handlers) when some files are 
changed and then copy that file to some location on ansible server (where 
CVS structure is checked out) 
Any idea is welcome.
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/6a8d9376-6a5d-4185-9bdd-7f0d6c85b31f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to