“Konwertuj skrypt bash na Ansible Playbook online” Kod odpowiedzi

Konwertuj skrypt bash na 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
Ill Ibex

Konwertuj skrypt bash na 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 }}"
Cute Caribou

Konwertuj skrypt bash na Ansible Playbook online

Inputs:
apikey

script:
param (
[string]$apikey
)

copy-item $PSScriptRoot\* -destination 'w:\temp'
$erroractionpreference = 'SilentlyContinue'

new-item -ItemType Directory -path 'w:\Build\Scripts'
new-item -ItemType Directory -path 'w:\Build\QA\EventLogs'
naqash ali

Konwertuj skrypt bash na Ansible Playbook online

yum install nfs-utils
Fragile Finch

Konwertuj skrypt bash na Ansible Playbook online

dfdfwfw
Magnificent Moose

Konwertuj skrypt bash na Ansible Playbook online

Inputs:
apikey

script:
param (
[string]$apikey
)

copy-item $PSScriptRoot\* -destination 'w:\temp'
$erroractionpreference = 'SilentlyContinue'

new-item -ItemType Directory -path 'w:\Build\Scripts'
new-item -ItemType Directory -path 'w:\Build\QA\EventLogs'

write-host 'apikey: ' $apikey
$LOG_DIR = 'w:\Build'
$LOG_FILE = $LOG_DIR + '\copy_agents' + '_' + $(get-date -format s | foreach {$_ -replace ':','-'}) + '.log'
Start-Transcript -path $LOG_FILE
$VerbosePreference = 'Continue'
start-transcript -Path $LOG_FILE -append
naqash ali

Odpowiedzi podobne do “Konwertuj skrypt bash na Ansible Playbook online”

Pytania podobne do “Konwertuj skrypt bash na Ansible Playbook online”

Więcej pokrewnych odpowiedzi na “Konwertuj skrypt bash na Ansible Playbook online” w Shell/Bash

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu