Horje
convert bash script to ansible playbook online Code Example
convert bash script to ansible playbook online
dfdfwfw
convert bash script to ansible playbook online
yum install nfs-utils
convert bash script to ansible playbook online
---
# Compiles and installs latest/desired version of sqlite3
# from the official sources

- name: Install the apt sqlite first
  become: true
  apt:
    name:
      - sqlite3
      - libsqlite3-dev
    state: present

- name: prevent sqlite upgrade
  become: true
  command: "/usr/bin/apt-mark hold {{ item }}"
  with_items:
    - sqlite3
    - libsqlite3-dev

- name: Ensure temp dir for building sqlite exists
  become: true
  file:
    state: directory
    path: "{{ sqlite_build_dir }}"
    mode: 0755
    owner: "{{ netskrt_user }}"
convert bash script to ansible playbook online
#!/bin/bash

#### Script despliegue servidores proyecto Sapzo Defensa

#### (C) 2020 - The very best Linux Team in the World !!! :-)


#### V 2.7 22--02-2021 15:00


### Variables Globales

FECHA=$(date +'%d/%m/%Y %H:%M:%S')      										# Capturamos la fecha actual del sistema incluyendo minutos y segundos
DAY=`date +'%d'`													# Capturamos dia actual
MONTH=`date +'%m'`													# Capturamos mes actual
YEAR=`date +'%y'`													# Capturamos año actual
CODERROR=0														# Para verificar que el despliegue se hace sin errores
DIRLOG="/var/despligue/logs/"												# Directorio para los logs del despliegue
FILOG="despliegue.log"													# Archivo de logs del despliegue
INSGLUSTER=0														# Estado instalacion software GlustersFS. Si 0 el proceso ha sido OK. Distinto de 0, el proceso ha f
VALORIPNONLOCALBIND=`cat /proc/sys/net/ipv4/ip_nonlocal_bind`								# Captura el valor actual de ip_nonlocal_bind
VALORIPV6=`cat /proc/sys/net/ipv6/conf/all/disable_ipv6`								# Captura el valor actual de disable_ipv6
VALORIPV6DEFAULT=`cat /proc/sys/net/ipv6/conf/default/disable_ipv6`							# Captura el valor actual de disable_ipv6 por defecto
CONFIPV6IPNONLOCALBIND="/etc/sysctl.conf"										# Ruta sysctl.conf
ARCHIVO_SYSCTL="$CONFIPV6IPNONLOCALBIND.${DAY}-${MONTH}-${YEAR}"							# Formateado del archivo copiado
DIRCIRES21="/usr/cires21"												# Direccion de cires2
CONTROL=1														# Control de ejecucion de la seccion de configuracion de IPs
CONTROLHOST=1														#
COLOR="\033["														# Establece patron para color de texto
ROJOR="1;31m"														# Establece color Rojo resaltado
VERDER="1;36m"														# Establece color Verde resaltado
NARANJA="38;5;166m"													# Establece color Naranja
MAGENTA="38;5;105m"													# Establece color Magenta
CIERRE_COLOR="\033[0m"													# Cierra el patron de color
CIERRE_FORMATO="\e[0m"													# Cierra el foramto de texto
RUTA="/home/administrador/auxiliar/configfiles/default"									# Ruta donde se almacenaran los ficheros de control




Shell

Related
kubectl update field Code Example kubectl update field Code Example
set default user postgres Code Example set default user postgres Code Example
change default operating system grub Code Example change default operating system grub Code Example
gitlab with DNS name, if ssl certificate using at load balancer level please configure the gitlab with HTTP only Code Example gitlab with DNS name, if ssl certificate using at load balancer level please configure the gitlab with HTTP only Code Example
How to install Apache 2 in Ubuntu? Code Example How to install Apache 2 in Ubuntu? Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9