Web y messaging

web:

  • apache2_mod_proxy : establecer atributos
  • apache2_module : gestión módulos (debian/ubuntu, requiere a2enmod y a2dismod)
  • deploy_helper :
  • djongo_manage :
  • ejabber_user :
  • htpasswd : gestion autentificación básica de usuarios
  • jboss :
  • jenkins_job :
  • jenkings_plugin :
  • jira : añade o modifica incidencias en Jira
  • letsencrypt : crear certificados SSL usando Let's Encrypt
  • supervisorctl : gestion programa(s) usando supervisord
  • taiga_issue : gestión incidencias en la plataforma Taiga

messaging:

  • rabbitmq_*

https://docs.ansible.com/ansible/latest/modules/apache2_module_module.html#apache2-module-module

  • requerido
    • name = módulo
  • opcional
    • state = { PRESENT / absent }
    • force = yes / no
-name: Habilitar móudlo wsgi
  apache2_module:
    name: wsgi
    state: present

https://docs.ansible.com/ansible/latest/modules/htpasswd_module.html#htpasswd-module

  • requerido
    • name = módulo
    • path = /ruta/fichero/htpasswd
  • opcional
    • state = { PRESENT / absent }
    • password = clave
    • crypt_scheme = { APR_MD5_CRYPT | des_crypt | ldap_sha1 | plaintext }
    • create = yes/no ← crear el fichero si no existe
    • mode = modo del fichero
    • owner: <usuario>
- name: instalar libreria necesaria passlib
  apt: name=python-passlib state=present
- name: añadir usuario
  htpasswd:
    name: oforte
    path: /var/www/html/.htpasswd
    password: test123
  delegate_to: localhost
AuthUserFile /var/www/html/.htpasswd
AuthGroupFile /dev/null
AuthName "Please enter password"
AuthType Basic
Require valid-user

https://docs.ansible.com/ansible/latest/modules/supervisorctl_module.html#supervisorctl-module

  • requerido
    • name = módulo
    • state = { present | started | stopped | restarted | absent }
  • opcional
    • config = /ruta/al/fichero
    • password
    • server_url = http://localhost:9001
    • username
    • supervisorctl_path = /ruta/socket
-name: detener aplicación
  supervisorctl:
    name: long_script
    state: stopped
  • info/cursos/udemy/ansible/modulos/web.txt
  • Darrera modificació: 25/09/2018 02:04
  • per mate