aisbergg / ansible-plugins Goto Github PK
View Code? Open in Web Editor NEW:inbox_tray: Custom filter and test plugins for Ansible
License: MIT License
:inbox_tray: Custom filter and test plugins for Ansible
License: MIT License
Hi Andre!
I wanted to try your keepass_http_password.py
but failing every single time.
# workstation.yaml
---
#############################
- name: Workstation
hosts: workstation
gather_facts: false
remote_user: steffen
vars:
#- _ansible_become_pass: "{{ lookup('keepass_http_password', 'url=ansible://linux-user login=foo') }}"
#- _ansible_become_pass: "{{ lookup('keepass_http_password', 'url=https://linux-user login=foo') }}"
#- _ansible_become_pass: "{{ lookup('keepass_http_password', 'ansible://linux-user login=foo') }}"
- _ansible_become_pass: "{{ lookup('keepass_http_password', 'https://linux-user login=foo') }}"
tasks:
#############################
- set_fact:
ansible_become_pass: "{{ ansible_become_pass | default(_ansible_become_pass) | default(omit) }}"
- name: create bla
become: true
file:
path: /etc/bla
I've tried all 4 syntax-styles you see at vars
- but get the below error every single time.
steffen@Dell:~/ansible/workstation$ ansible-playbook workstation.yaml
/home/steffen/.local/lib/python2.7/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography.exceptions import InvalidSignature
PLAY [Workstation] ***********************************************************************************************************
TASK [set_fact] **************************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "An unhandled exception occurred while templating '{{ lookup('keepass_http_password', 'https://linux-user login=foo') }}'. Error was a <type 'exceptions.SyntaxError'>, original message: invalid syntax (keepass_http_password.py, line 121)"}
PLAY RECAP *******************************************************************************************************************
localhost : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Do you have a hint for me?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.