ansible

package
v1.1.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

README

com.plugis.ansible cloud events

Cloud events :

  • Type : com.plugis.ansible.playbook
  • topic : com.plugis.ansible.8E:82:45:0E:A4:6F
  • parameters :
  • packages : packages to install with apt install
  • roles : roles to install with ansible-galaxy install
  • base : prefix for inventory and playbooks, can be a folder or an http url
  • inventory : one inventory file
  • playbooks : array of playbook files
  • parameter sample :
{
  "packages": "ansible sshpass aptitude",
  "roles": "geerlingguy.docker geerlingguy.pip",
  "base": "/tmp/v2-ansible/",
  "inventory": "local.yml",
  "playbooks": ["playbooks/upgrade.yml","/tmp/v2-ansible/playbooks/docker.yml"]
}

./event-sender -type 'com.plugis.ansible.playbook' -topic "com.plugis.ansible.8E:82:45:0E:A4:6F" -request -timeout 600
-data '{"packages": "ansible sshpass aptitude","roles": "geerlingguy.docker geerlingguy.pip","base": "https://update.plugis.com/ansible/","inventory": "local.yml","playbooks": ["upgrade.yml","site.yml"]}' \

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnsibleCommandParams

type AnsibleCommandParams struct {
	Command  []string `json:"command"`
	Response string   `json:"response,omitempty"`
	Error    error    `json:"error,omitempty"`
}

type AnsibleService

type AnsibleService struct {
	natsservice.NatsService
}

func (AnsibleService) Run

func (svc AnsibleService) Run(ctx context.Context, params ...interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL