Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

605 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Infrastructure

Arguments:

Argument Description Values

target

A hostname, a list of hostnames, or a group the playbook is run against.

Hostname, list of hostnames, or group

include_role

(device_role) Overwrites the device_role by including a custom role instead.

Device role name

upgrade

(false, true) Runs all upgrades defined in the various roles.

false, true

quick

(false, true) Skips installs and most time-costly operations (never interferes with upgrade).

false, true

deploy_guest

(false, "true", "redeploy", "purge", "backup", "only", "stop") Deploys the VM or CT from the stats given in NetBox. If purge is used, it ignores the status in NetBox. If set to only, the roles are skipped.

false, true, redeploy, purge, backup, only, stop

only_role

(undefined, role name) Skips non-vital tasks from all other roles (useful for debugging).

undefined, role name

serial

(false, true) Allows optional serial execution of the roles.

false, true

prohibit_restore

(false, true) Prohibits the restoration of the guest on failures.

false, true

Prometheus:

Argument Description Values

prometheus_role_exporter_port_{role_name}

(false, int) Set for each role in its vars; determines the port of the role’s dedicated Prometheus exporter.

false, integer value

configure_prometheus_job

(false, true) Skips the guest setup and only updates the Prometheus configuration on the target host.

false, true

PVE Nodes:

Argument Description Values

drain_node

(false, true) Whether the node should be drained or not.

false, true

undrain_node

(false, true) Whether the node should be undrained or not.

false, true

join_password

(string) If set, allows the node to join the cluster defined in NetBox.

String value

Semaphore:

Argument Description Values

semaphore_add_local_ssh_key

(false, true) Adds the local SSH key from ~/.ssh/id_rsa to Semaphore as ansible-ssh-key.

false, true

examples:

ansible-playbook playbooks/generic-playbook.yml -e "target=semaphore"
ansible-playbook playbooks/generic-playbook.yml -e "target=semaphore upgrade=true"

installed collections:

ansible-galaxy collection install -r requirements.yml

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages