Skip to content

Ansible modules to provision Rancher stacks and environments.

License

Notifications You must be signed in to change notification settings

maxwo/rancher-ansible-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rancher Ansible modules

Ansible modules to provision Rancher.

Supports check to make it more reliable to provision.

Environment provisioning

To create an environment, use the rancher_environment task:

- name: Ensure environment TEST is created
  rancher_environment:
    state: present
    url: "{{ rancher_url }}"
    access_key: "{{ access_key }}"
    secret_key: "{{ secret_key }}"
    environment: TEST
    template: Cattle
    description: This is my test environment

Stack provisioning

To launch a stack with tuned answer, use the rancher_stack task:

- name: Ensure Janitor is launched
  rancher_stack:
    state: present
    url: "{{ rancher_url }}"
    access_key: "{{ access_key }}"
    secret_key: "{{ secret_key }}"
    environment: "Default"
    catalog: "community"
    stack: "Janitor"
    template: "janitor"
    version: "v1.7.1"
    answers:
      FREQUENCY: 18000

About

Ansible modules to provision Rancher stacks and environments.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages