Taula de continguts

Sistema de Control de Versiones

3:43 Control Versiones

git

https://docs.ansible.com/ansible/latest/modules/git_module.html#git-module

...
-name: obtener ejemplo
  git:
    repo: https://github.com/ansible/ansible-examples.git
    dest: /root/ansible_examples/

git_config

https://docs.ansible.com/ansible/latest/modules/git_config_module.html#git-config-module

-name: usar vim como editor
  git_config:
    name: core.editor
    value: vim
    scope: global

hg

https://docs.ansible.com/ansible/latest/modules/hg_module.html#hg-module

-name: obtener código
  hg:
    repo: https://www.selenic.com/repo/hello
    dest: /home/user/hg/

subversion

https://docs.ansible.com/ansible/latest/modules/subversion_module.html#subversion-module

-name: obtener código de WP
 subversion:
   repo: https://develop.svn.wordpress.org/trunk/src/
   dest: /home/users/wp