<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Cradicle Explorer</title>
    <link href="/css/bootstrap/bootstrap.min.css" rel="stylesheet">
    <style>
      .form-control-dark::placeholder {
          color: #aaa;
          opacity: 1;
      }
    </style>
    <link rel="stylesheet" href="/assets/fontawesome/css/all.min.css">
    <link rel="icon" type="image/png" href="/favicon.png">


                <link href="/css/dashboard.css" rel="stylesheet">
                </head>
                <body>
                <header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
                  <a class="navbar-brand col-md-3 col-lg-2 me-0 px-3 fs-6" href="/">Cradicle Explorer</a>
                  <button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                  </button>
                  <form method="get" action="/cgi-bin/main" style="width:100%;"><input class="form-control form-control-dark w-100 rounded-0 border-0" type="text" name="q" placeholder="Search repos" aria-label="Search"></form>
                  <div class="navbar-nav flex-row">
                    <div class="nav-item text-nowrap">
                      <a class="nav-link px-3 active" href="/cgi-bin/repo?id=z3unh9LnoPpBLnNxpCzw15GDrTUCp">ansible-modules-bitwarden</a>
                    </div>
                  </div>
                </header>
                <div class="container-fluid">
                  <div class="row">
                    <nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-dark sidebar collapse">
                      <div class="position-sticky pt-3 sidebar-sticky">
                        <ul class="nav flex-column">
                          <li class="nav-item">
                            <a class="nav-link active" href="/cgi-bin/repo?id=z3unh9LnoPpBLnNxpCzw15GDrTUCp">
                              <i class="align-text-bottom fa-solid fa-info"></i>
                              Info
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="/cgi-bin/repo?id=z3unh9LnoPpBLnNxpCzw15GDrTUCp&issue=list">
                              <i class="align-text-bottom fa-solid fa-layer-group"></i>
                              Issues
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="/cgi-bin/repo?id=z3unh9LnoPpBLnNxpCzw15GDrTUCp&patch=list">
                              <i class="align-text-bottom fa-solid fa-vest-patches"></i>
                              Patches
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="/cgi-bin/repo?id=z3unh9LnoPpBLnNxpCzw15GDrTUCp&wallet=list">
                              <i class="align-text-bottom fa-solid fa-wallet"></i>
                              Wallets
                            </a>
                          </li>
                          <li class="nav-item">
                            <a class="nav-link" href="/cgi-bin/repo?id=z3unh9LnoPpBLnNxpCzw15GDrTUCp&source=.">
                              <i class="align-text-bottom fa-solid fa-code"></i>
                              Source
                            </a>
                          </li>
                        <h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted text-uppercase">
                          <span></span>
                        </h6>
                        <ul class="nav flex-column mb-2">
                        
                        </ul>
                      </div>
                    </nav>
                <main class="col-md-9 ms-sm-auto col-lg-10">
                  <div class="container px-1 py-3">
        

    <div class="list-group">
    <div class="list-group-item">
    <div style="font-size:1.3rem;">ansible-modules-bitwarden</div>
    <div class="repo-item"></div>
    <div>rad:z3unh9LnoPpBLnNxpCzw15GDrTUCp</div>
    </div>
    <div class="list-group-item">
    <div>Visibility</div>
    <div class="repo-item">public</div>
    </div>
    <div class="list-group-item">
    <div>Delegates</div><div class="repo-item">did:key:z6MkuRd31dLXvQTavnVGbZL2jfpKY9rJjSktE89LBa8zAmdp</div>
    </div>
    <div class="list-group-item">
    <div>Default branch</div>
    <div><span class="repo-item">master &#8594 73b14fa5f880833cb9c01abe1c33c180852d017c</span> (Thu Feb 10 14:29:20 2022)</div>
    </div>
    <div class="list-group-item">
    <div>Threshold</div>
    <div class="repo-item">1</div>
    </div>
    </div>
    
        <div class="list-group mt-3">
        <div class="list-group-item">
        <div class="mb-2" style="font-weight:bold;"><i class="fa-solid fa-book"></i> README.md</div>
        <pre style="margin:0; font-size:0.85rem; overflow-x:auto; color:#fafafa;"># ansible-modules-bitwarden

Bitwarden integration for Ansible.

## Installation

The easiest way to install this lookup plugin is to use the
`ansible-galaxy` command:

    ansible-galaxy install git+https://github.com/c0sco/ansible-modules-bitwarden

This will place the `ansible-modules-bitwarden` role into
`$HOME/.ansible/roles`, where it will be available to all playbooks
you run on your system.

## Lookup plugin

To use this plugin, you will need to activate it by including the role
in your play.  For example:

    - hosts: localhost
      roles:
        - ansible-modules-bitwarden

Use Ansible&#x27;s `lookup()` function with the `bitwarden` argument,
followed by the items you want to retrieve. The default field is
`password`, but any other field can be specified using the `field`
named argument. If you need to specify the path to the Bitwarden CLI
binary, use the `path` named argument.

## Examples

### Get a single password

```yaml
# Get password for Google
- debug:
    msg: {{ lookup(&#x27;bitwarden&#x27;, &#x27;Google&#x27;) }}
```

The above might result in:

```
TASK [debug] *********************************************************
ok: [localhost] =&gt; {
    &quot;msg&quot;: &quot;mysecret&quot;
    }
```

### Get a single username

```yaml
# Get username for Google
- debug:
    msg: {{ lookup(&#x27;bitwarden&#x27;, &#x27;Google&#x27;, field=&#x27;username&#x27;) }}
```

The above might result in:

```
TASK [debug] *********************************************************
ok: [localhost] =&gt; {
    &quot;msg&quot;: &quot;alice&quot;
    }
```

### See all available fields

```yaml
# Get all available fields for an entry
- debug:
    msg: {{ lookup(&#x27;bitwarden&#x27;, &#x27;Google&#x27;, field=&#x27;item&#x27;) }}
```

The above might result in:

```
TASK [debug] *********************************************************
ok: [localhost] =&gt; {
    &quot;msg&quot;: {
        &quot;favorite&quot;: false,
        &quot;fields&quot;: [
            {
                &quot;name&quot;: &quot;mycustomfield&quot;,
                &quot;type&quot;: 0,
                &quot;value&quot;: &quot;the value of my custom field&quot;
            }
        ],
        &quot;folderId&quot;: null,
        &quot;id&quot;: &quot;12345678-0123-4321-0000-a97001342c31&quot;,
        &quot;login&quot;: {
            &quot;password&quot;: &quot;mysecret&quot;,
            &quot;passwordRevisionDate&quot;: null,
            &quot;totp&quot;: null,
            &quot;username&quot;: &quot;alice&quot;
        },
        &quot;name&quot;: &quot;Google&quot;,
        &quot;notes&quot;: null,
        &quot;object&quot;: &quot;item&quot;,
        &quot;organizationId&quot;: &quot;87654321-1234-9876-0000-a96800ed2b47&quot;,
        &quot;revisionDate&quot;: &quot;2018-10-19T19:20:17.923Z&quot;,
        &quot;type&quot;: 1
    }
}
```

### Get the value of a custom field

```yaml
# Get the value of a custom field
- debug:
    msg: {{ lookup(&#x27;bitwarden&#x27;, &#x27;Google&#x27;, field=&#x27;mycustomfield&#x27;, custom_field=true) }}
```

The above might result in:

```
TASK [debug] *********************************************************
ok: [localhost] =&gt; {
    &quot;msg&quot;: &quot;the value of my custom field&quot;
    }
```

### download attachments files

```yaml
# Get the value of a custom field
- debug:
    msg: {{ lookup(&#x27;bitwarden&#x27;, &#x27;privateKey.pem&#x27;,  itemid=&#x27;123456-1234-1234-abbf-60c345aaa3e&#x27;, attachments=true ) }}
```
Optional parameters - output=&#x27;/ansible/publicKey.pem&#x27;

The above might result in:

```
TASK [debug] *********************************************************
ok: [localhost] =&gt; {
    &quot;msg&quot;: &quot;Saved /publicKey.pem&quot;
    }
```
</pre>
        </div>
        </div>

</div>
</main>
</div>
</div>


</body>
</html>

