Sistema de Control de Versiones

  • bzr
  • git
  • git_config
  • github_hooks
  • github_keys
  • github_release
  • gitlab_group
  • gitlab_project
  • gitlab_user
  • hg
  • subversion

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

  • requerido
    • repo = direccoión
    • dest = /directorio
  • opcional
    • version
    • update = yes / no
    • remote = origin
    • recursive = yes / no
    • force = no / yes
    • accept_hostkey = no / yes
...
-name: obtener ejemplo
  git:
    repo: https://github.com/ansible/ansible-examples.git
    dest: /root/ansible_examples/

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

  • name = nombre_calve
  • value = valor
  • scope = { local | global | system }
  • list_all = yes / no
  • repo = ruta/repo
-name: usar vim como editor
  git_config:
    name: core.editor
    value: vim
    scope: global

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

  • requerido
    • repo = dirección
    • dest = /path/
  • opcional
    • force = yes / no
    • purge = no / yes
    • revision = version
    • update = yes / no
-name: obtener código
  hg:
    repo: https://www.selenic.com/repo/hello
    dest: /home/user/hg/

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

  • requerido
    • repo = dirección
    • dest = /directorio/
  • opcional
    • force = no / yes
    • username = usuario
    • password = contraseña
    • revision = version
    • switch = yes / no ← cambio de rama
-name: obtener código de WP
 subversion:
   repo: https://develop.svn.wordpress.org/trunk/src/
   dest: /home/users/wp
  • info/cursos/udemy/ansible/modulos/cvs.txt
  • Darrera modificació: 25/09/2018 02:03
  • per mate