theforeman / theforeman.foreman / 0.8.1 / module / foreman_location Manage Foreman Location Authors: Matthias M Dellweg (@mdellweg) ATIX AG preview | supported by communitytheforeman.foreman.foreman_location (0.8.1) — module
Install with ansible-galaxy collection install theforeman.foreman:==0.8.1
collections: - name: theforeman.foreman version: 0.8.1
Manage Foreman Location
# Create a simple location - name: "Create CI Location" foreman_location: username: "admin" password: "changeme" server_url: "https://foreman.example.com" name: "My Cool New Location" organizations: - "Default Organization" state: present
# Create a nested location - name: "Create Nested CI Location" foreman_location: username: "admin" password: "changeme" server_url: "https://foreman.example.com" name: "My Nested location" parent: "My Cool New Location" state: present
# Create a new nested location with parent included in name - name: "Create New Nested Location" foreman_location: username: "admin" password: "changeme" server_url: "https://foreman.example.com" name: "My Cool New Location/New nested location" state: present
# Move a nested location to another parent - name: "Create Nested CI Location" foreman_location: username: "admin" password: "changeme" server_url: "https://foreman.example.com" name: "My Cool New Location/New nested location" parent: "My Cool New Location/My Nested location" state: present
name: description: - Name or Title of the Foreman Location required: true type: str state: choices: - present - absent default: present description: - State of the entity in Foreman type: str parent: description: - Title of a parent Location for nesting type: str password: description: Password of the user accessing the Foreman server required: true type: str username: description: Username accessing the Foreman server required: true type: str parameters: description: - Entity domain specific host parameters elements: dict required: false suboptions: name: description: - Name of the parameter required: true type: str parameter_type: choices: - string - boolean - integer - real - array - hash - yaml - json default: string description: - Type of the parameter type: str value: description: - Value of the parameter required: true type: raw type: list server_url: description: URL of the Foreman server required: true type: str organizations: description: - List of organizations the location should be assigned to elements: str type: list validate_certs: aliases: - verify_ssl default: true description: Whether or not to verify the TLS certificates of the Foreman server type: bool