2025-05-30 08:11:49 +02:00

862 B

Sync-awx-inventory

Description

This script this script synchronize the hosts source file with an AWX inventory

Requirements

Installation

Script

cp sync-awx-inventory /usr/local/bin/

AWX credentials

Authentication by token. See to create token

cat << EOF > $HOME/.awxcred
token=werfgg....drf

Cron

echo " */7 * * * * root ./usr/local/bin/sync-awx-inventory.sh > /dev/null 2>&1" > /etc/cron/sync-awx-inventory.cron

Usage

sudo /usr/local/bin/sync-awx-inventory.sh --help

Logs

sudo journalctl -f -t syn_awx_inv

Changelog

[1.0] - 29.05.2025

Added
  • Version from scratch by GMo