refs #8025 passbolt test
This commit is contained in:
parent
5bf05ebb29
commit
210edd5b79
|
@ -1,2 +1,3 @@
|
||||||
.vscode/
|
.vscode/
|
||||||
.vaultpass
|
.vaultpass
|
||||||
|
.pyenv
|
||||||
|
|
14
README.md
14
README.md
|
@ -9,6 +9,18 @@ Instal Ansible on Debian.
|
||||||
apt install ansible
|
apt install ansible
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Install dependencies.
|
||||||
|
```
|
||||||
|
ansible-galaxy collection install -r collections/requirements.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
Create Python virtual environment.
|
||||||
|
```
|
||||||
|
python3 -m venv .pyenv
|
||||||
|
source .pyenv/bin/activate
|
||||||
|
pip install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
## Run playbook
|
## Run playbook
|
||||||
|
|
||||||
Before merging changes into protected branches, playbooks should be tested
|
Before merging changes into protected branches, playbooks should be tested
|
||||||
|
@ -45,3 +57,5 @@ be used, it is ovelay over the original *ansible-playbook* command.
|
||||||
* https://docs.ansible.com/ansible/latest/reference_appendices/config.html
|
* https://docs.ansible.com/ansible/latest/reference_appendices/config.html
|
||||||
* https://docs.ansible.com/ansible/latest/collections/ansible/builtin/gather_facts_module.html
|
* https://docs.ansible.com/ansible/latest/collections/ansible/builtin/gather_facts_module.html
|
||||||
* https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_vars_facts.html
|
* https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_vars_facts.html
|
||||||
|
* https://www.passbolt.com/blog/managing-secrets-in-ansible-using-passbolt
|
||||||
|
* https://galaxy.ansible.com/ui/repo/published/anatomicjc/passbolt/
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
remote_user = root
|
remote_user = root
|
||||||
host_key_checking = False
|
host_key_checking = False
|
||||||
roles_path = ./roles
|
roles_path = ./roles
|
||||||
inventory = ./inventories/production
|
inventory = ./inventories/servers
|
||||||
gathering = smart
|
gathering = smart
|
||||||
interpreter_python = auto_silent
|
interpreter_python = auto_silent
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
## Collections
|
## Collections
|
||||||
|
|
||||||
The purpose of collections is get more modules and plugins to use in ansible.
|
The purpose of collections is get more modules and plugins to use in ansible.
|
||||||
|
Place your collection dependencies here in *requirements.yml* and AWX will
|
||||||
Collections are supported by Ansible community.
|
install them automtatically.
|
||||||
|
|
||||||
# Install collections
|
# Install collections
|
||||||
|
|
||||||
|
|
|
@ -11,3 +11,6 @@ collections:
|
||||||
- name: ansible.windows
|
- name: ansible.windows
|
||||||
version: '>=2.3.0'
|
version: '>=2.3.0'
|
||||||
type: galaxy
|
type: galaxy
|
||||||
|
- name: anatomicjc.passbolt
|
||||||
|
version: '>=0.0.14'
|
||||||
|
type: galaxy
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
- name: Fetch passbolt password
|
||||||
|
hosts: all
|
||||||
|
gather_facts: no
|
||||||
|
tasks:
|
||||||
|
- name: Print password
|
||||||
|
debug:
|
||||||
|
msg: "Variable: {{ lookup(passbolt, 'test') }}"
|
||||||
|
vars:
|
||||||
|
passbolt: 'anatomicjc.passbolt.passbolt'
|
||||||
|
passbolt_inventory: 'anatomicjc.passbolt.passbolt_inventory'
|
|
@ -0,0 +1 @@
|
||||||
|
py-passbolt==0.0.18
|
Loading…
Reference in New Issue