Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/teramako/jagabata.psm

PowerShell module for AWX/AnsibleTower
https://github.com/teramako/jagabata.psm

awx-ansible powershell-module

Last synced: about 1 month ago
JSON representation

PowerShell module for AWX/AnsibleTower

Awesome Lists containing this project

README

        

# Jagabata.psm 🥔🧈

PowerShell module to operate AWX/AnsibleTower using [Rest API].

- Required: PowerShell 7
- Supports Windows, GNU/Linux, macOS
- Much number of commands are available (nearly 200). See: Command list [by verb] or [by noun].
- Retrieve various information (`Get-*`, `Find-*`)
- Launch, wait or stop jobs such as JobTemplate, WorkflowJobTemplate, etc (`Start-*`, `Invoke-*`, `Wait-`, `Stop-*`)
- Creating new resources such as Users, JobTemplates, Credential, etc. (`New-*`)
- Update existing resources (`Update-*`)
- Associate or Unassociate a resource with another resource (`Register-*`, `Unregister-*`)
- Delete resources (`Remove-*`)

[by verb]: docs/en-US/CommandListByVerb.md
[by noun]: docs/en-US/CommandListByNoun.md

## 🎥 Demo
![demo1](docs/demo/demo_1_invoke_jobtemplate.gif)

See: [All demo movies](docs/demo/)

## 🚀 Get Started

### 1. Install Jagabata.psm from [PowerShell Gallery].

```powershell
Install-Module -Name Jagabata.psm -Scope CurrentUser
```

### 2. Import module

```powershell
Import-Module Jagabata.psm
```

All commands of Jagabata.psm are added "Ansible" prefix by default, like `Get-Host` -> `Get-AnsibleHost`

> [!TIP]
> Please use the `-Prefix` parameter to change the prefix.
> For example:
> ```powershell
> Import-Module Jagabata.psm -Prefix Awx
> ```
> All commands of Jagabata.psm will be added "Awx" prefix instead of "Ansible", like `Get-Host` -> `Get-AwxHost`.

### 3. Get Poersonal Access Token

Login to AWX/AnsibleTower to obtain a Personal Access Token (PAT) and
create a configuration file with the [New-AnsibleApiConfig](./docs/en-US/cmdlets/New-AnsibleApiConfig.md) command.

See [Settings](./docs/en-US/settings.md) for more details.

### 4. Completed

Now you are ready. Now execute your favorite command!

## 🚧 Build

See [Build](./docs/en-US/build.md) document.

[Rest API]: https://ansible.readthedocs.io/projects/awx/en/latest/rest_api/index.html "AWX API Reference — Ansible AWX community documentation"
[Powershell Gallery]: https://www.powershellgallery.com/packages/Jagabata.psm