Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ansible / theforeman / foreman / roles / organizations
  ..
  tasks
  README.md
Size: Mime:

theforeman.foreman.organizations

This role creates and manages organizations.

Role Variables

This role supports the Common Role Variables.

The main data structure for this role is the list of foreman_organizations. Each organization requires the following fields:

  • name: The name of the organization.

The following fields are optional in the sense that the server will use default values when they are omitted:

  • label: The label of the organization.
  • description: The description of the organization.
  • state: The state of the organization. Can be present or absent.

Example Playbooks

--- 
- name: add organizations to foreman
  hosts: localhost
  gather_facts: false
  roles:
    - role: theforeman.foreman.organizations
      vars: 
        foreman_server_url: https://foreman.example.com
        foreman_username: admin
        foreman_password: changeme
        foreman_organizations: 
          - name: raleigh
            label: rdu
            state: present
          - name: default
            label: boring
            state: absent
          - name: lanai 
            description: pacific datacenter