Viewing docs for Harness v0.13.1
published on Thursday, May 28, 2026 by Pulumi
published on Thursday, May 28, 2026 by Pulumi
Viewing docs for Harness v0.13.1
published on Thursday, May 28, 2026 by Pulumi
published on Thursday, May 28, 2026 by Pulumi
Data source for retrieving a Harness IaCM Ansible Playbook.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = harness.platform.getIacmAnsiblePlaybook({
identifier: "my_playbook",
orgId: exampleHarnessPlatformOrganization.id,
projectId: exampleHarnessPlatformProject.id,
});
import pulumi
import pulumi_harness as harness
example = harness.platform.get_iacm_ansible_playbook(identifier="my_playbook",
org_id=example_harness_platform_organization["id"],
project_id=example_harness_platform_project["id"])
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.LookupIacmAnsiblePlaybook(ctx, &platform.LookupIacmAnsiblePlaybookArgs{
Identifier: "my_playbook",
OrgId: exampleHarnessPlatformOrganization.Id,
ProjectId: exampleHarnessPlatformProject.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var example = Harness.Platform.GetIacmAnsiblePlaybook.Invoke(new()
{
Identifier = "my_playbook",
OrgId = exampleHarnessPlatformOrganization.Id,
ProjectId = exampleHarnessPlatformProject.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetIacmAnsiblePlaybookArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = PlatformFunctions.getIacmAnsiblePlaybook(GetIacmAnsiblePlaybookArgs.builder()
.identifier("my_playbook")
.orgId(exampleHarnessPlatformOrganization.id())
.projectId(exampleHarnessPlatformProject.id())
.build());
}
}
variables:
example:
fn::invoke:
function: harness:platform:getIacmAnsiblePlaybook
arguments:
identifier: my_playbook
orgId: ${exampleHarnessPlatformOrganization.id}
projectId: ${exampleHarnessPlatformProject.id}
pulumi {
required_providers {
harness = {
source = "pulumi/harness"
}
}
}
data "harness_platform_getiacmansibleplaybook" "example" {
identifier = "my_playbook"
org_id = exampleHarnessPlatformOrganization.id
project_id = exampleHarnessPlatformProject.id
}
Using getIacmAnsiblePlaybook
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getIacmAnsiblePlaybook(args: GetIacmAnsiblePlaybookArgs, opts?: InvokeOptions): Promise<GetIacmAnsiblePlaybookResult>
function getIacmAnsiblePlaybookOutput(args: GetIacmAnsiblePlaybookOutputArgs, opts?: InvokeOptions): Output<GetIacmAnsiblePlaybookResult>def get_iacm_ansible_playbook(identifier: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIacmAnsiblePlaybookResult
def get_iacm_ansible_playbook_output(identifier: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
org_id: pulumi.Input[Optional[str]] = None,
project_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIacmAnsiblePlaybookResult]func LookupIacmAnsiblePlaybook(ctx *Context, args *LookupIacmAnsiblePlaybookArgs, opts ...InvokeOption) (*LookupIacmAnsiblePlaybookResult, error)
func LookupIacmAnsiblePlaybookOutput(ctx *Context, args *LookupIacmAnsiblePlaybookOutputArgs, opts ...InvokeOption) LookupIacmAnsiblePlaybookResultOutput> Note: This function is named LookupIacmAnsiblePlaybook in the Go SDK.
public static class GetIacmAnsiblePlaybook
{
public static Task<GetIacmAnsiblePlaybookResult> InvokeAsync(GetIacmAnsiblePlaybookArgs args, InvokeOptions? opts = null)
public static Output<GetIacmAnsiblePlaybookResult> Invoke(GetIacmAnsiblePlaybookInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIacmAnsiblePlaybookResult> getIacmAnsiblePlaybook(GetIacmAnsiblePlaybookArgs args, InvokeOptions options)
public static Output<GetIacmAnsiblePlaybookResult> getIacmAnsiblePlaybook(GetIacmAnsiblePlaybookArgs args, InvokeOptions options)
fn::invoke:
function: harness:platform/getIacmAnsiblePlaybook:getIacmAnsiblePlaybook
arguments:
# arguments dictionarydata "harness_platform_getiacmansibleplaybook" "name" {
# arguments
}The following arguments are supported:
- Identifier string
- Unique identifier of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Name string
- Name of the resource.
- Identifier string
- Unique identifier of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Name string
- Name of the resource.
- identifier string
- Unique identifier of the resource.
- org_
id string - Unique identifier of the organization.
- project_
id string - Unique identifier of the project.
- name string
- Name of the resource.
- identifier String
- Unique identifier of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- name String
- Name of the resource.
- identifier string
- Unique identifier of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- name string
- Name of the resource.
- identifier str
- Unique identifier of the resource.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- name str
- Name of the resource.
- identifier String
- Unique identifier of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- name String
- Name of the resource.
getIacmAnsiblePlaybook Result
The following output properties are available:
- Ansible
Galaxy bool - Install Ansible Galaxy dependencies.
- Ansible
Galaxy stringRequirements File - Path to the Ansible Galaxy requirements file.
- Description string
- Description of the resource.
- Env
Vars List<GetIacm Ansible Playbook Env Var> - Environment variables configured on the playbook.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Repository string
- Repository name for the playbook.
- Repository
Branch string - Repository branch for the playbook.
- Repository
Commit string - Repository commit or tag for the playbook.
- Repository
Connector string - Repository connector reference for the playbook.
- Repository
Path string - Path within the repository where the playbook resides.
- List<string>
- Tags to associate with the resource.
- Vars
List<Get
Iacm Ansible Playbook Var> - Variables configured on the playbook.
- Name string
- Name of the resource.
- Ansible
Galaxy bool - Install Ansible Galaxy dependencies.
- Ansible
Galaxy stringRequirements File - Path to the Ansible Galaxy requirements file.
- Description string
- Description of the resource.
- Env
Vars []GetIacm Ansible Playbook Env Var - Environment variables configured on the playbook.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Unique identifier of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Repository string
- Repository name for the playbook.
- Repository
Branch string - Repository branch for the playbook.
- Repository
Commit string - Repository commit or tag for the playbook.
- Repository
Connector string - Repository connector reference for the playbook.
- Repository
Path string - Path within the repository where the playbook resides.
- []string
- Tags to associate with the resource.
- Vars
[]Get
Iacm Ansible Playbook Var - Variables configured on the playbook.
- Name string
- Name of the resource.
- ansible_
galaxy bool - Install Ansible Galaxy dependencies.
- ansible_
galaxy_ stringrequirements_ file - Path to the Ansible Galaxy requirements file.
- description string
- Description of the resource.
- env_
vars list(object) - Environment variables configured on the playbook.
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Unique identifier of the resource.
- org_
id string - Unique identifier of the organization.
- project_
id string - Unique identifier of the project.
- repository string
- Repository name for the playbook.
- repository_
branch string - Repository branch for the playbook.
- repository_
commit string - Repository commit or tag for the playbook.
- repository_
connector string - Repository connector reference for the playbook.
- repository_
path string - Path within the repository where the playbook resides.
- list(string)
- Tags to associate with the resource.
- vars list(object)
- Variables configured on the playbook.
- name string
- Name of the resource.
- ansible
Galaxy Boolean - Install Ansible Galaxy dependencies.
- ansible
Galaxy StringRequirements File - Path to the Ansible Galaxy requirements file.
- description String
- Description of the resource.
- env
Vars List<GetIacm Ansible Playbook Env Var> - Environment variables configured on the playbook.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- repository String
- Repository name for the playbook.
- repository
Branch String - Repository branch for the playbook.
- repository
Commit String - Repository commit or tag for the playbook.
- repository
Connector String - Repository connector reference for the playbook.
- repository
Path String - Path within the repository where the playbook resides.
- List<String>
- Tags to associate with the resource.
- vars
List<Get
Iacm Ansible Playbook Var> - Variables configured on the playbook.
- name String
- Name of the resource.
- ansible
Galaxy boolean - Install Ansible Galaxy dependencies.
- ansible
Galaxy stringRequirements File - Path to the Ansible Galaxy requirements file.
- description string
- Description of the resource.
- env
Vars GetIacm Ansible Playbook Env Var[] - Environment variables configured on the playbook.
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Unique identifier of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- repository string
- Repository name for the playbook.
- repository
Branch string - Repository branch for the playbook.
- repository
Commit string - Repository commit or tag for the playbook.
- repository
Connector string - Repository connector reference for the playbook.
- repository
Path string - Path within the repository where the playbook resides.
- string[]
- Tags to associate with the resource.
- vars
Get
Iacm Ansible Playbook Var[] - Variables configured on the playbook.
- name string
- Name of the resource.
- ansible_
galaxy bool - Install Ansible Galaxy dependencies.
- ansible_
galaxy_ strrequirements_ file - Path to the Ansible Galaxy requirements file.
- description str
- Description of the resource.
- env_
vars Sequence[GetIacm Ansible Playbook Env Var] - Environment variables configured on the playbook.
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- Unique identifier of the resource.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- repository str
- Repository name for the playbook.
- repository_
branch str - Repository branch for the playbook.
- repository_
commit str - Repository commit or tag for the playbook.
- repository_
connector str - Repository connector reference for the playbook.
- repository_
path str - Path within the repository where the playbook resides.
- Sequence[str]
- Tags to associate with the resource.
- vars
Sequence[Get
Iacm Ansible Playbook Var] - Variables configured on the playbook.
- name str
- Name of the resource.
- ansible
Galaxy Boolean - Install Ansible Galaxy dependencies.
- ansible
Galaxy StringRequirements File - Path to the Ansible Galaxy requirements file.
- description String
- Description of the resource.
- env
Vars List<Property Map> - Environment variables configured on the playbook.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Unique identifier of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- repository String
- Repository name for the playbook.
- repository
Branch String - Repository branch for the playbook.
- repository
Commit String - Repository commit or tag for the playbook.
- repository
Connector String - Repository connector reference for the playbook.
- repository
Path String - Path within the repository where the playbook resides.
- List<String>
- Tags to associate with the resource.
- vars List<Property Map>
- Variables configured on the playbook.
- name String
- Name of the resource.
Supporting Types
GetIacmAnsiblePlaybookEnvVar
- file_
name string - Filename to store the value in (used for file-backed variables).
- key string
- Key is the identifier for the variable.
- value string
- Value of the variable. For secret value types this must be a Harness secret reference.
- value_
type string - Value type. One of: string, secret.
- file_
name str - Filename to store the value in (used for file-backed variables).
- key str
- Key is the identifier for the variable.
- value str
- Value of the variable. For secret value types this must be a Harness secret reference.
- value_
type str - Value type. One of: string, secret.
GetIacmAnsiblePlaybookVar
- file_
name string - Filename to store the value in (used for file-backed variables).
- key string
- Key is the identifier for the variable.
- value string
- Value of the variable. For secret value types this must be a Harness secret reference.
- value_
type string - Value type. One of: string, secret.
- file_
name str - Filename to store the value in (used for file-backed variables).
- key str
- Key is the identifier for the variable.
- value str
- Value of the variable. For secret value types this must be a Harness secret reference.
- value_
type str - Value type. One of: string, secret.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
Viewing docs for Harness v0.13.1
published on Thursday, May 28, 2026 by Pulumi
published on Thursday, May 28, 2026 by Pulumi